jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "OCS-L3-Support" <ocs-l3-supp...@hp.com>
Subject Clustering - ERROR
Date Wed, 19 Sep 2007 13:43:14 GMT
Hi All,
 
We are implementing the tomcat load balancing for my application.
So, we need to share the same repository for all tomcats.
 
1) We have shared the repository folder for all tomcats (NSF mount)
    
2) added the cluster node in repository.xml
 
<Cluster id="node1">
<Journal class="org.apache.jackrabbit.core.journal.FileJournal">
<param name="revision" value="${rep.home}/revision.log" />
<param name="directory" value="${rep.home}/../shared" />
</Journal>
</Cluster>
 
3) added same repository.xml in all tomcats
 
4) First tomcat is started successfully
 
5) While starting the second tomcat, its throwing error.
 
Please advise.
 
Here is the error details:
 
 
19.09.2007 12:34:08 *INFO * [main] Init: [None] OCS RepositoryServlet
initializing.. (OcsLogger.java, line 80)
19.09.2007 12:34:08 *INFO * [main] Init: [None] repository-home   =
/opt/webhost/ocs/shared/tomcat/mounted_data/jcr (OcsLogger.java, line
80)
19.09.2007 12:34:08 *INFO * [main] Init: [None] repository-config =
/opt/webhost/ocs/tomcat5.5.9/webapps/ocs/WEB-INF/content-repository/repo
sitory.xml (OcsLogger.java, line 80)
19.09.2007 12:34:08 *INFO * [main] Init: [None] repository-name   =
ocs.repository (OcsLogger.java, line 80)
19.09.2007 12:34:08 *INFO * [main] Init: [None] jaas config       =
/opt/webhost/ocs/tomcat5.5.9/webapps/ocs/WEB-INF/content-repository/jaas
.config (OcsLogger.java, line 80)
Sep 19, 2007 12:34:08 PM org.apache.jackrabbit.core.RepositoryImpl
<init>
INFO: Starting repository...
Sep 19, 2007 12:34:08 PM org.apache.jackrabbit.core.util.RepositoryLock
acquire
WARNING: Existing lock file
/opt/webhost/ocs/shared/tomcat/mounted_data/jcr/.lock detected.
Repository was not shut down properly.
19.09.2007 12:34:08 *ERROR* [main] Init: [None] Unable to initialize
repository: javax.jcr.RepositoryException: The repository home
/opt/webhost/ocs/shared/tomcat/mounted_data/jcr appears to be in use
since the file named .lock is locked by another
process.javax.jcr.RepositoryException: The repository home
/opt/webhost/ocs/shared/tomcat/mounted_data/jcr appears to be in use
since the file named .lock is locked by another process.
 at
org.apache.jackrabbit.core.util.RepositoryLock.acquire(RepositoryLock.ja
va:129)
 at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:229
)
 at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:521
)
 at
com.hp.ocs.j2ee.RepositoryServlet.startRepository(RepositoryServlet.java
:337)
 at com.hp.ocs.j2ee.RepositoryServlet.init(RepositoryServlet.java:191)
 at javax.servlet.GenericServlet.init(GenericServlet.java:211)
 at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source)
 at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
 at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown
Source)
 at org.apache.catalina.core.StandardContext.start(Unknown Source)
 at org.apache.catalina.core.ContainerBase.addChildInternal(Unknown
Source)
 at org.apache.catalina.core.ContainerBase.addChild(Unknown Source)
 at org.apache.catalina.core.StandardHost.addChild(Unknown Source)
 at org.apache.catalina.startup.HostConfig.deployDescriptor(Unknown
Source)
 at org.apache.catalina.startup.HostConfig.deployDescriptors(Unknown
Source)
 at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source)
 at org.apache.catalina.startup.HostConfig.start(Unknown Source)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown
Source)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.StandardHost.start(Unknown Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.StandardEngine.start(Unknown Source)
 at org.apache.catalina.core.StandardService.start(Unknown Source)
 at org.apache.catalina.core.StandardServer.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.start(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
 (OcsLogger.java, line 124)
 
Best Regards,
RK
 

Mime
View raw message