jackrabbit-dev mailing list archives

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

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

Stefan Guggisberg updated JCR-2530:
-----------------------------------

    Priority: Minor  (was: Major)

adjusting priority as this is IMO hardly a 'major' issue.

i even doubt that this is a jackrabbit issue since it seems that
    new File(".").getCanonicalFile().getPath();
returns 
    "/application//WebSphere/AppServer/profiles/base/installedApps/cell/test.ear/app2.war"

in both deployed apps.

IMO it's most likely either a Spring Modules JCR, IBM JVM or IBM WAS issue (or a combination
thereof).


> 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: 1.3.3, core 1.4.9
>         Environment: IBM JVM 1.5.0, AIX operational system
>            Reporter: Michael Braunschweig
>            Priority: Minor
>
> 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