jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wilhelmsen Tor Iver <TorIv...@arrive.no>
Subject Jackrabbit on Glassfish: Exception when registering as JNDI resource jcr/Jackrabbit
Date Mon, 19 Apr 2010 13:16:20 GMT
I try to configure jackrabbit-webapp-2.0.0 with the recommended JNDI name syntax, but run into
an exception in Glassfish 2.1.1 (see below). Is there a different approach I should use?

My bootstrap.properties, based on an example I googled up:

#bootstrap properties for the repository startup servlet.
#Fri Apr 16 10:39:43 CEST 2010
java.naming.factory.initial=org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory
repository.home=jackrabbit
rmi.enabled=true
repository.config=jackrabbit/repository.xml
repository.name=jackrabbit.repository
rmi.host=localhost
java.naming.provider.url=http\://www.apache.org/jackrabbit
jndi.enabled=true
jndi.name=jcr/Jackrabbit
rmi.port=0


The exception:

[#|2010-04-19T14:57:30.185+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=14;_ThreadName=pool-1-thread-11;|19.04.2010
14:57:30 *ERROR* RepositoryStartupServlet: RepositoryStartupServlet initializing failed: org.apache.jackrabbit.j2ee.ServletExceptionWithCause:
Unable to bind repository using JNDI: jcr/Jackrabbit (RepositoryStartupServlet.java, line
245)
org.apache.jackrabbit.j2ee.ServletExceptionWithCause: Unable to bind repository using JNDI:
jcr/Jackrabbit
        at org.apache.jackrabbit.j2ee.RepositoryStartupServlet.registerJNDI(RepositoryStartupServlet.java:454)
        at org.apache.jackrabbit.j2ee.RepositoryStartupServlet.startup(RepositoryStartupServlet.java:240)
        at org.apache.jackrabbit.j2ee.RepositoryStartupServlet.init(RepositoryStartupServlet.java:211)
        at javax.servlet.GenericServlet.init(GenericServlet.java:270)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1023)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4917)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5324)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
        at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: javax.naming.InvalidNameException: jcr/Jackrabbit has more components than namespace
can handle
        at org.apache.jackrabbit.core.jndi.provider.DummyContext.getComponentName(DummyContext.java:71)
        at org.apache.jackrabbit.core.jndi.provider.DummyContext.bind(DummyContext.java:103)
        at org.apache.jackrabbit.core.jndi.provider.DummyContext.bind(DummyContext.java:114)
        at javax.naming.InitialContext.bind(InitialContext.java:400)
        at org.apache.jackrabbit.j2ee.RepositoryStartupServlet.registerJNDI(RepositoryStartupServlet.java:451)
        ... 17 more
|#]

Med vennlig hilsen

TOR IVER WILHELMSEN
Senior systemutvikler
Arrive AS
T (+47) 48 16 06 18
E-post: toriverw@arrive.no
http://www.arrive.no
http://servicedesk.arrive.no




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message