jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From qcfireball <qcfireb...@yahoo.com>
Subject Re: Please help: Clustering
Date Fri, 30 Nov 2007 21:03:08 GMT

I am sorry to have wasted the bandwidth.  I am an idiot.

The problem was with my samba mount.  I switched to using sshfs, and
everything works great.

May still have the modified content problem, but at least both nodes are up
and running.


qcfireball wrote:
> 
> I am clustering 2 JR nodes together (jcr0001, jcr0002).   My repo
> structure is this:
> 
> /opt/jackrabbit/
>    repository
>    shared
>    version
>    workspace
>    jcr0001/  (tomcat 5.5.25, jre 1.6.0_03-b05, ubuntu 7.10 kernel
> 2.6.22-14-generic, jackrabbit 1.3.3)
>       repository.xml
>       repository --> ../repository
>       shared --> ../shared
>       version --> ../version
>       workspace --> ../workspace
>    jcr0002   (tomcat 5.5.23, jre 1.6.0-b105, ubuntu 7.01 kernel
> 2.6.20-16-server, jackrabbit 1.3.3)
>       repository.xml
>       repository --> ../repository
>       shared --> ../shared
>       version --> ../version
>       workspace --> ../workspace
> 
> I have followed the Clustering howto - added GlobalNamingResources to
> server.xml and Resource Link to context.xml.
> 
> The files reside on the same disk that jcr0001 is running on.  jcr0002
> uses a samba mount to get at the repository files.  I have verified that
> files can be created/modified from jcr0002.
> 
> jcr0001 starts up without any problem.  jcr0002 however, results in this
> error:
> 
> SEVERE: ERROR javax.naming.NamingException: Permission denied: Permission
> denied
> javax.naming.NamingException: Permission denied: Permission denied
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
>         at
> org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(ResourceLinkFactory.java:97)
>         at
> javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
>         at
> com.nielsen.jackrabbit.context.JackrabbitSpecific.getRepository(JackrabbitSpecific.java:185)
>         at
> com.nielsen.jackrabbit.context.JackrabbitSpecific.createRemoteRepository(JackrabbitSpecific.java:118)
>         at
> com.nielsen.jackrabbit.context.JackrabbitSpecific.bindRmiServer(JackrabbitSpecific.java:76)
>         at
> com.nielsen.jackrabbit.context.JackrabbitSpecific.contextInitialized(JackrabbitSpecific.java:60)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>         at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
>         at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         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:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> 
> 
> I have spent most of today attempting to figure out what the problem is,
> and have gotten nowhere.
> 
> Does anyone have any ideas as to what may be wrong?
> 
> I had this working yesterday, with both nodes using the same exact
> directory for the repository, but using different repository.xml files. 
> However, changes on one node were not showing up on the other node.
> 

-- 
View this message in context: http://www.nabble.com/Please-help%3A--Clustering-tf4923182.html#a14093706
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message