My journeys with cocca registry (The Debian Way...). Thanks Luke!
Guide I used is at - http://www.coccaregistry.net/images/stories/espresso/quick-install.pdf
I start of with a base install of debian squeeze. I then installed postgresql-8.3 using apt-get install postgresql-8.3. The system now needs java. I first tried apt-get install openjdk-6-jdk, but this gave me dependancy errors. I had to run apt-get -f install to fix(I am using a XEN guest as my test system). Download the Debian resin package from http://www.caucho.com/download/resin_4.0.0-i386.deb, and install it using dpkg -i.
Copy contents of /etc/resin/conf to /usr/local/resin/conf. Edit /usr/local/resin/conf/resin.xml and find references to 127.0.0.1 and change to your IP address. Issue /etc/init.d/resin start. To test resin is working, point your browser to http:<your-ip-address>:6600 (remember to stop it once you have tested) , if you get a resin error page congrats. If not, issue the command /usr/local/resin/bin/resin.sh and troubleshoot the error you get.
Now Download http://downloads.cocca.org.nz/Registrar.war into /usr/local/resin/webapps. Also download http://downloads.cocca.org.nz/demo.coccaregistry.keystore into the same dir. Now cd to /usr/local/resin/lib and download http://downloads.cocca.org.nz/postgresql-8.3-604.jdbc3.jar into it.
This way failed for me, as I got bloody java errors.... Why can't Java log better....
I am now downloading the resin source from http://www.caucho.com/download/resin-4.0.0-src.zip and am going to compile it against the Java I donwloaded off the net and try again. The java instructions are below under the heading old.
I sure am sucking at this. Get the same error either way....
If anyone is interested in helping, below is my error;
e. 19:34:02,093 FATAL DatasourceConnectionProvider:55 - Could not find datasource: java:comp/env/jdbc/registrar javax.naming.NameNotFoundException: java:comp/env/jdbc/registrar at com.caucho.naming.ContextImpl.lookupImpl(ContextImpl.java:205) at com.caucho.naming.ContextImpl.lookup(ContextImpl.java:157) at javax.naming.InitialContext.lookup(InitialContext.java:409) at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56) at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915) at cocca.cx.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:27) at cocca.cx.hibernate.OpenSessionInViewFilterJTA.init(OpenSessionInViewFilterJTA.java:26) at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:142) at com.caucho.server.dispatch.FilterManager.init(FilterManager.java:89) at com.caucho.server.webapp.WebApp.start(WebApp.java:2084) at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:678) at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72) at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549) at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160) at com.caucho.server.webapp.WebAppContainer.startImpl(WebAppContainer.java:707) at com.caucho.server.host.Host.startImpl(Host.java:496) at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:687) at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:678) at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72) at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549) at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160) at com.caucho.server.host.HostContainer.start(HostContainer.java:484) at com.caucho.server.cluster.Server.start(Server.java:1822) at com.caucho.server.resin.Resin.createServer(Resin.java:927) at com.caucho.server.resin.Resin.start(Resin.java:998) at com.caucho.server.resin.Resin.initMain(Resin.java:1462) at com.caucho.server.resin.Resin.main(Resin.java:1645) Initial SessionFactory creation failed.org.hibernate.HibernateException: Could not find datasource [09-07-21 19:34:02.104] {main} javax.servlet.ServletException: java.lang.ExceptionInInitializerError [09-07-21 19:34:02.104] {main} at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:172) [09-07-21 19:34:02.104] {main} at com.caucho.server.dispatch.FilterManager.init(FilterManager.java:89) [09-07-21 19:34:02.104] {main} at com.caucho.server.webapp.WebApp.start(WebApp.java:2084) [09-07-21 19:34:02.104] {main} at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:678) [09-07-21 19:34:02.104] {main} at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72) [09-07-21 19:34:02.104] {main} at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549) [09-07-21 19:34:02.104] {main} at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160) [09-07-21 19:34:02.104] {main} at com.caucho.server.webapp.WebAppContainer.startImpl(WebAppContainer.java:707) [09-07-21 19:34:02.104] {main} at com.caucho.server.host.Host.startImpl(Host.java:496) [09-07-21 19:34:02.104] {main} at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:687) [09-07-21 19:34:02.104] {main} at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:678) [09-07-21 19:34:02.104] {main} at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72) [09-07-21 19:34:02.104] {main} at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549) [09-07-21 19:34:02.104] {main} at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160) [09-07-21 19:34:02.104] {main} at com.caucho.server.host.HostContainer.start(HostContainer.java:484) [09-07-21 19:34:02.104] {main} at com.caucho.server.cluster.Server.start(Server.java:1822) [09-07-21 19:34:02.104] {main} at com.caucho.server.resin.Resin.createServer(Resin.java:927) [09-07-21 19:34:02.104] {main} at com.caucho.server.resin.Resin.start(Resin.java:998) [09-07-21 19:34:02.104] {main} at com.caucho.server.resin.Resin.initMain(Resin.java:1462) [09-07-21 19:34:02.104] {main} at com.caucho.server.resin.Resin.main(Resin.java:1645) [09-07-21 19:34:02.104] {main} Caused by: java.lang.ExceptionInInitializerError [09-07-21 19:34:02.104] {main} at cocca.cx.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:36) [09-07-21 19:34:02.104] {main} at cocca.cx.hibernate.OpenSessionInViewFilterJTA.init(OpenSessionInViewFilterJTA.java:26) [09-07-21 19:34:02.104] {main} at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:142) [09-07-21 19:34:02.104] {main} ... 19 more [09-07-21 19:34:02.104] {main} Caused by: org.hibernate.HibernateException: Could not find datasource [09-07-21 19:34:02.104] {main} at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56) [09-07-21 19:34:02.104] {main} at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) [09-07-21 19:34:02.104] {main} at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56) [09-07-21 19:34:02.104] {main} at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414) [09-07-21 19:34:02.104] {main} at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62) [09-07-21 19:34:02.104] {main} at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073) [09-07-21 19:34:02.104] {main} at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298) [09-07-21 19:34:02.104] {main} at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915) [09-07-21 19:34:02.104] {main} at cocca.cx.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:27) [09-07-21 19:34:02.104] {main} ... 21 more [09-07-21 19:34:02.104] {main} Caused by: javax.naming.NameNotFoundException: java:comp/env/jdbc/registrar [09-07-21 19:34:02.104] {main} at com.caucho.naming.ContextImpl.lookupImpl(ContextImpl.java:205) [09-07-21 19:34:02.104] {main} at com.caucho.naming.ContextImpl.lookup(ContextImpl.java:157) [09-07-21 19:34:02.104] {main} at javax.naming.InitialContext.lookup(InitialContext.java:409) [09-07-21 19:34:02.104] {main} at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
Old
Java JDK needs to be installed (6_u14 as of 20/07/09) from http://java.sun.com/javase/downloads/index.jsp. Install the JDK like this sh ./jdk-6u14-linux-i586.bin --prefix=/usr/.
CategoryRegistry