jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rama Krishna (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1126) Content created by one TOMCAT not visible for another TOMCAT
Date Wed, 19 Sep 2007 14:29:43 GMT

     [ https://issues.apache.org/jira/browse/JCR-1126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rama Krishna updated JCR-1126:
------------------------------

    Attachment: workspace-v1.2.xml
                repository.xml

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)
     Ex:  /home/data    --> all tomcats pointing to same folder
    
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. (please find the attached config files)
 
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/repository.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.java: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.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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)


> Content created by one TOMCAT not visible for another TOMCAT
> ------------------------------------------------------------
>
>                 Key: JCR-1126
>                 URL: https://issues.apache.org/jira/browse/JCR-1126
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webapp
>         Environment: Application running on loadbalanced 3 tomcats in unix
>            Reporter: Rama Krishna
>         Attachments: jaas.config, repository.xml, screenshot-1.jpg, workspace-v1.2.xml
>
>
> Hello friends, 
> I am working in a Content Management Project. 
> We have implemented load balancing in TOMCAT (say A, B and C). 
> But now the content created by TOMCAT-A is not visible for TOMCAT-B and TOMCAT-C even
though content folder is shared between the TOMCATS. 
> Thanks & Regards, 
> RK

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message