Jahia Install Forum > Installing Jahia...

0 (0 Good)
0 (0 Bad)

Installing Jahia on Resin Pro 3.1.10

by  jpaagt »  2011/06/07 20:56

 

We've been trying to deploy Jahia CE v6 on Resin Pro 3.1.10. We are stuck on a problem that has to do with a lock that Jackrabbit is trying to create. This is what is displayed in the logs when starting the server:

2010-05-10 09:59:31,262: INFO  [org.apache.jackrabbit.core.RepositoryImpl] - Starting repository...

2010-05-10 09:59:31,264: WARN  [org.apache.jackrabbit.core.util.RepositoryLock] - Existing lock file /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository/.lock detected. Repository was not shut down properly.

2010-05-10 09:59:31,587: INFO  [org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager] - Database: HSQL Database Engine / 1.8.0

2010-05-10 09:59:31,587: INFO  [org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager] - Driver: HSQL Database Engine Driver / 1.8.0

2010-05-10 09:59:31,593: INFO  [org.apache.jackrabbit.core.fs.local.LocalFileSystem] - LocalFileSystem initialized at path /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository/version/blobs

2010-05-10 09:59:31,621: INFO  [org.apache.jackrabbit.core.RepositoryImpl] - initializing workspace 'default'...

2010-05-10 09:59:31,631: INFO  [org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager] - Database: HSQL Database Engine / 1.8.0

2010-05-10 09:59:31,632: INFO  [org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager] - Driver: HSQL Database Engine Driver / 1.8.0

2010-05-10 09:59:31,637: INFO  [org.apache.jackrabbit.core.fs.local.LocalFileSystem] - LocalFileSystem initialized at path /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository/workspaces/default/blobs

2010-05-10 09:59:31,761: INFO  [org.apache.jackrabbit.core.RepositoryImpl] - workspace 'default' initialized

2010-05-10 09:59:31,878: INFO  [org.apache.jackrabbit.core.fs.local.LocalFileSystem] - LocalFileSystem initialized at path /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository/workspaces/default/index

2010-05-10 09:59:31,965: INFO  [org.apache.jackrabbit.core.query.lucene.SearchIndex] - Index initialized: /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository/workspaces/default/index Version: 3

2010-05-10 09:59:31,965: INFO  [org.apache.jackrabbit.core.RepositoryImpl] - Repository started

2010-05-10 09:59:31,967: INFO  [org.jahia.services.content.JCRStoreProvider] - Repository default acquired via JNDI

2010-05-10 09:59:32,078: INFO  [org.apache.jackrabbit.core.security.JahiaSecurityManager] - init: use Repository Login-Configuration for Jackrabbit

2010-05-10 09:59:32,078: INFO  [org.apache.jackrabbit.core.RepositoryImpl] - SecurityManager = class org.apache.jackrabbit.core.security.JahiaSecurityManager

Later on while still starting up:

2010-05-10 10:46:39,282: INFO  [org.apache.jackrabbit.core.RepositoryImpl] - Starting repository...

2010-05-10 10:46:39,282: WARN  [org.apache.jackrabbit.core.util.RepositoryLock] - Existing lock file /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository/.lock detected. Repository was not shut down properly.

2010-05-10 10:46:39,283: ERROR [org.apache.jackrabbit.core.RepositoryImpl] - failed to start Repository: The repository home /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository appears to be in use since the file named .lock is already locked by the current process.

javax.jcr.RepositoryException: The repository home /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository appears to be in use since the file named .lock is already locked by the current process.

   at org.apache.jackrabbit.core.util.RepositoryLock.tryLock(RepositoryLock.java:142)

   at org.apache.jackrabbit.core.util.RepositoryLock.acquire(RepositoryLock.java:121)

   at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:247)

   at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:590)

   at org.apache.jackrabbit.core.jndi.BindableRepository.createRepository(BindableRepository.java:174)

   at org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableRepository.java:138)

   at org.apache.jackrabbit.core.jndi.BindableRepository.create(BindableRepository.java:125)

   at org.apache.jackrabbit.core.jndi.JahiaBindableRepositoryFactory.createInstance(JahiaBindableRepositoryFactory.java:110)

   at org.apache.jackrabbit.core.jndi.JahiaBindableRepositoryFactory.getObjectInstance(JahiaBindableRepositoryFactory.java:130)

   at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

   at com.caucho.naming.ContextImpl.dereference(ContextImpl.java:574)

   at com.caucho.naming.ContextImpl.lookupImpl(ContextImpl.java:195)

   at com.caucho.naming.ContextImpl.lookup(ContextImpl.java:157)

   at org.apache.jackrabbit.core.security.JahiaAccessManager.getRepository(JahiaAccessManager.java:409)

   at org.jahia.bin.Jahia.init(Jahia.java:574)

   at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:833)

   at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:735)

   at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:159)

   at com.caucho.server.webapp.WebApp.start(WebApp.java:1874)

   at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)

   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.start(WebAppContainer.java:659)

   at com.caucho.server.host.Host.start(Host.java:450)

   at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)

   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:1319)

   at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710)

   at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542)

   at com.caucho.server.resin.Resin.start(Resin.java:703)

   at com.caucho.server.resin.Resin.initMain(Resin.java:1162)

   at com.caucho.server.resin.Resin.main(Resin.java:1365)

2010-05-10 10:46:39,284: INFO  [org.apache.jackrabbit.core.RepositoryImpl] - Shutting down repository...

2010-05-10 10:46:39,285: INFO  [org.apache.jackrabbit.core.RepositoryImpl] - Repository has been shutdown

2010-05-10 10:46:39,285: ERROR [org.jahia.bin.Jahia] - Error during initialization of Jahia

Comparing it to the Tomcat bundle, a new connection to the repository should not be created. The previous connection should be reused.

I've read somewhere (can't find where) that Jahia has been succesfully deployed on Resin. Does anyone know what can be going wrong?

We'll keep on trying, hopefully we can make it work and we'll share our progress. Thx for any info anybody may have...

  • Installing Jahia on Resin Pro 3.1.10
    2011/07/04 15:37

    jpaagt <p> &nbsp;</p> <p> <title></title> </p> <p> We&#39;ve been trying to deploy Jahia CE v6 on Resin Pro 3.1.10. We are stuck on a problem that has to do with a lock that Jackrabbit is trying to create. This is what is displayed in the logs when starting the server:</p> <pre> 2010-05-10 09:59:31,262: INFO [org.apache.jackrabbit.core.RepositoryImpl] - Starting repository... 2010-05-10 09:59:31,264: WARN [org.apache.jackrabbit.core.util.RepositoryLock] - Existing lock file /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository/.lock detected. Repository was not shut down properly. 2010-05-10 09:59:31,587: INFO [org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager] - Database: HSQL Database Engine / 1.8.0 2010-05-10 09:59:31,587: INFO [org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager] - Driver: HSQL Database Engine Driver / 1.8.0 2010-05-10 09:59:31,593: INFO [org.apache.jackrabbit.core.fs.local.LocalFileSystem] - LocalFileSystem initialized at path /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository/version/blobs 2010-05-10 09:59:31,621: INFO [org.apache.jackrabbit.core.RepositoryImpl] - initializing workspace &#39;default&#39;... 2010-05-10 09:59:31,631: INFO [org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager] - Database: HSQL Database Engine / 1.8.0 2010-05-10 09:59:31,632: INFO [org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager] - Driver: HSQL Database Engine Driver / 1.8.0 2010-05-10 09:59:31,637: INFO [org.apache.jackrabbit.core.fs.local.LocalFileSystem] - LocalFileSystem initialized at path /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository/workspaces/default/blobs 2010-05-10 09:59:31,761: INFO [org.apache.jackrabbit.core.RepositoryImpl] - workspace &#39;default&#39; initialized 2010-05-10 09:59:31,878: INFO [org.apache.jackrabbit.core.fs.local.LocalFileSystem] - LocalFileSystem initialized at path /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository/workspaces/default/index 2010-05-10 09:59:31,965: INFO [org.apache.jackrabbit.core.query.lucene.SearchIndex] - Index initialized: /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository/workspaces/default/index Version: 3 2010-05-10 09:59:31,965: INFO [org.apache.jackrabbit.core.RepositoryImpl] - Repository started 2010-05-10 09:59:31,967: INFO [org.jahia.services.content.JCRStoreProvider] - Repository default acquired via JNDI 2010-05-10 09:59:32,078: INFO [org.apache.jackrabbit.core.security.JahiaSecurityManager] - init: use Repository Login-Configuration for Jackrabbit 2010-05-10 09:59:32,078: INFO [org.apache.jackrabbit.core.RepositoryImpl] - SecurityManager = class org.apache.jackrabbit.core.security.JahiaSecurityManager</pre> <p> Later on while still starting up:</p> <pre> 2010-05-10 10:46:39,282: INFO [org.apache.jackrabbit.core.RepositoryImpl] - Starting repository... 2010-05-10 10:46:39,282: WARN [org.apache.jackrabbit.core.util.RepositoryLock] - Existing lock file /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository/.lock detected. Repository was not shut down properly. 2010-05-10 10:46:39,283: ERROR [org.apache.jackrabbit.core.RepositoryImpl] - failed to start Repository: The repository home /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository appears to be in use since the file named .lock is already locked by the current process. javax.jcr.RepositoryException: The repository home /home/jacosta/Devel/Servers/jahia-resin-pro-3.1.10/webapps/ROOT/WEB-INF/var/repository appears to be in use since the file named .lock is already locked by the current process. at org.apache.jackrabbit.core.util.RepositoryLock.tryLock(RepositoryLock.java:142) at org.apache.jackrabbit.core.util.RepositoryLock.acquire(RepositoryLock.java:121) at org.apache.jackrabbit.core.RepositoryImpl.&lt;init&gt;(RepositoryImpl.java:247) at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:590) at org.apache.jackrabbit.core.jndi.BindableRepository.createRepository(BindableRepository.java:174) at org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableRepository.java:138) at org.apache.jackrabbit.core.jndi.BindableRepository.create(BindableRepository.java:125) at org.apache.jackrabbit.core.jndi.JahiaBindableRepositoryFactory.createInstance(JahiaBindableRepositoryFactory.java:110) at org.apache.jackrabbit.core.jndi.JahiaBindableRepositoryFactory.getObjectInstance(JahiaBindableRepositoryFactory.java:130) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) at com.caucho.naming.ContextImpl.dereference(ContextImpl.java:574) at com.caucho.naming.ContextImpl.lookupImpl(ContextImpl.java:195) at com.caucho.naming.ContextImpl.lookup(ContextImpl.java:157) at org.apache.jackrabbit.core.security.JahiaAccessManager.getRepository(JahiaAccessManager.java:409) at org.jahia.bin.Jahia.init(Jahia.java:574) at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:833) at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:735) at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:159) at com.caucho.server.webapp.WebApp.start(WebApp.java:1874) at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667) 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.start(WebAppContainer.java:659) at com.caucho.server.host.Host.start(Host.java:450) at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667) 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:1319) at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710) at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542) at com.caucho.server.resin.Resin.start(Resin.java:703) at com.caucho.server.resin.Resin.initMain(Resin.java:1162) at com.caucho.server.resin.Resin.main(Resin.java:1365) 2010-05-10 10:46:39,284: INFO [org.apache.jackrabbit.core.RepositoryImpl] - Shutting down repository... 2010-05-10 10:46:39,285: INFO [org.apache.jackrabbit.core.RepositoryImpl] - Repository has been shutdown 2010-05-10 10:46:39,285: ERROR [org.jahia.bin.Jahia] - Error during initialization of Jahia</pre> <p> Comparing it to the Tomcat bundle, a new connection to the repository should not be created. The previous connection should be reused.</p> <p> I&#39;ve read somewhere (can&#39;t find where) that Jahia has been succesfully deployed on Resin. Does anyone know what can be going wrong?</p> <p> We&#39;ll keep on trying, hopefully we can make it work and we&#39;ll share our progress. Thx for any info anybody may have...</p>

  • Number of messages  8
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page