jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Braunschweig (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-2530) Multible Jackrabbit Instances within one Java VM
Date Wed, 03 Mar 2010 11:32:27 GMT
Multible Jackrabbit Instances within one Java VM
------------------------------------------------

                 Key: JCR-2530
                 URL: https://issues.apache.org/jira/browse/JCR-2530
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-core
    Affects Versions: core 1.4.9, 1.3.3
         Environment: IBM JVM 1.5.0, AIX operational system
            Reporter: Michael Braunschweig


Running two WARs each with an own Jackrabit repository on one Server (one Java VM - using
Tomcat or IBM WAS) with Sun VM or IBM VM on Windows running fine. 

Using AIX as operational system (WAS and IBM VM) we get an error starting the second WAR:
"javax.jcr.RepositoryException: The repository home /application//WebSphere/AppServer/profiles/base/installedApps/cell/test.ear/app2.war
appears to be already locked by the current process. The first application is running fine."


Both repositories are configured using spring class org.springmodules.jcr.jackrabbit.RepositoryFactoryBean
and have its own application directory. This is configured by setting the property "homeDir"
to ".".

It seems that in class RepositoryLock (line 160) the variable "identifier" in both web application
is identical using AIX but not using windows. My oppinion is that windows resolve the full
path (e.g. "c:\webapp\app1") but AIX only returns a ".". My be an other implementation of
Java class "File"??

Workaround: Configure the each applicarion repository to an other subdirectory in the web
application path (e.g. "/jcrLockApp1" and "/jcrLockApp2"). Then both applications start with
AIX. 

-- 
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