jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Buchmann <david.buchm...@liip.ch>
Subject Re: tomcat jackrabbit.war: javax.servlet.ServletException: Repository access configuration is not valid
Date Tue, 14 May 2013 07:52:08 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ok, i solved my problem. the issue was that in web.xml, there are two
places to specify the bootstrap.properties. one for the startup
servlet and one for the repository access servlet. when they both have
the same config, things work.

no idea why this is duplicated and not put into a variable or
something to avoid that error, but my immediate problem is solved :-)

cheers,david

Am 13.05.2013 18:35, schrieb David Buchmann:
> hi,
> 
> i am trying to run jackrabbit 2.6.0 in the tomcat container. 
> /var/log/tomcat6/catalina.out says all is well, but when i try to 
> connect i get an error 500 and very unhelpful stack traces in 
> /var/log/tomcat6/localhost.2013-05-13.log
> 
> my repository.xml says
> 
> <PersistenceManager 
> class="org.apache.jackrabbit.core.persistence.pool.MySqlPersistenceManager">
>
> 
<param name="url"
> value="jdbc:mysql://<dbserver>:3306/<dbname>"/> <param name="user"
> value="liip" /> <param name="password" value="..." /> <param
> name="schema" value="mysql"/> <param name="schemaObjectPrefix"
> value="pm_vs_${wsp.name}_"/> </PersistenceManager>
> 
> and i can connect to the db with the credentials i have, and i see 
> that tables are created. any hints what could have gone wrong
> here?
> 
> May 13, 2013 6:25:41 PM
> org.apache.catalina.core.StandardWrapperValve invoke SEVERE:
> Servlet.service() for servlet JCRWebdavServer threw exception 
> java.lang.IllegalStateException: The repository is not available. 
> Please check RepositoryAccessServlet configuration in web.xml. at 
> org.apache.jackrabbit.j2ee.RepositoryAccessServlet.getRepository(RepositoryAccessServlet.java:306)
>
> 
at
> org.apache.jackrabbit.j2ee.RepositoryAccessServlet.getRepository(RepositoryAccessServlet.java:320)
>
> 
at
> org.apache.jackrabbit.j2ee.JcrRemotingServlet.getRepository(JcrRemotingServlet.java:31)
>
> 
at
> org.apache.jackrabbit.webdav.jcr.JCRWebdavServerServlet.getDavSessionProvider(JCRWebdavServerServlet.java:161)
>
> 
at
> org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.service(AbstractWebdavServlet.java:302)
>
> 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>
> 
at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>
> 
at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>
> 
at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>
> 
at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>
> 
at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>
> 
at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>
> 
at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>
> 
at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
>
> 
at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
>
> 
at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>
> 
at java.lang.Thread.run(Thread.java:662)
> Caused by: javax.servlet.ServletException: Repository access 
> configuration is not valid. at 
> org.apache.jackrabbit.j2ee.RepositoryAccessServlet.getConfig(RepositoryAccessServlet.java:163)
>
> 
at
> org.apache.jackrabbit.j2ee.RepositoryAccessServlet.getRepositoryByJNDI(RepositoryAccessServlet.java:195)
>
> 
at
> org.apache.jackrabbit.j2ee.RepositoryAccessServlet.getRepository(RepositoryAccessServlet.java:295)
>
> 
... 17 more
> 
> 
> while the boot log says
> 
> INFO: Deploying web application archive jackrabbit.war 2013-05-13
> 18:29:00.326 INFO  [main] RepositoryStartupServlet.java:239 
> RepositoryStartupServlet initializing... 2013-05-13 18:29:00.340
> INFO  [main] AbstractConfig.java:101 Configuration of
> BootstrapConfig 2013-05-13 18:29:00.340 INFO  [main]
> AbstractConfig.java:102 
> ---------------------------------------------- 2013-05-13
> 18:29:00.346 INFO  [main] AbstractConfig.java:106 valid: true 
> 2013-05-13 18:29:00.346 INFO  [main] AbstractConfig.java:106 
> rmiConfig: org.apache.jackrabbit.j2ee.RMIConfig@24ebf068 2013-05-13
> 18:29:00.346 INFO  [main] AbstractConfig.java:106 repositoryConfig:
> /opt/jackrabbit-repository/repository.xml 2013-05-13 18:29:00.346
> INFO  [main] AbstractConfig.java:106 class: class
> org.apache.jackrabbit.j2ee.BootstrapConfig 2013-05-13 18:29:00.346
> INFO  [main] AbstractConfig.java:106 repositoryHome:
> /opt/jackrabbit-repository/jackrabbit 2013-05-13 18:29:00.346 INFO
> [main] AbstractConfig.java:106 repositoryName:
> jackrabbit.repository 2013-05-13 18:29:00.346 INFO  [main]
> AbstractConfig.java:106 jndiConfig:
> org.apache.jackrabbit.j2ee.JNDIConfig@7df44ec7 2013-05-13
> 18:29:00.346 INFO  [main] AbstractConfig.java:108 
> ---------------------------------------------- 2013-05-13
> 18:29:00.347 INFO  [main] AbstractConfig.java:101 Configuration of
> JNDIConfig 2013-05-13 18:29:00.347 INFO  [main]
> AbstractConfig.java:102 
> ---------------------------------------------- 2013-05-13
> 18:29:00.347 INFO  [main] AbstractConfig.java:106 valid: true 
> 2013-05-13 18:29:00.347 INFO  [main] AbstractConfig.java:106 
> jndiName: jackrabbit.repository 2013-05-13 18:29:00.347 INFO
> [main] AbstractConfig.java:106 jndiEnabled: true 2013-05-13
> 18:29:00.347 INFO  [main] AbstractConfig.java:106 class: class
> org.apache.jackrabbit.j2ee.JNDIConfig 2013-05-13 18:29:00.347 INFO
> [main] AbstractConfig.java:106 jndiEnv: 
> {java.naming.provider.url=http://www.apache.org/jackrabbit,
> java.naming.fa 
> ctory.initial=org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory}
>
> 
2013-05-13 18:29:00.347 INFO  [main] AbstractConfig.java:108
> ---------------------------------------------- 2013-05-13
> 18:29:00.348 INFO  [main] AbstractConfig.java:101 Configuration of
> RMIConfig 2013-05-13 18:29:00.348 INFO  [main]
> AbstractConfig.java:102 
> ---------------------------------------------- 2013-05-13
> 18:29:00.348 INFO  [main] AbstractConfig.java:106 valid: true 
> 2013-05-13 18:29:00.348 INFO  [main] AbstractConfig.java:106 
> rmiName: jackrabbit.repository 2013-05-13 18:29:00.348 INFO  [main]
> AbstractConfig.java:106 class: class
> org.apache.jackrabbit.j2ee.RMIConfig 2013-05-13 18:29:00.348 INFO
> [main] AbstractConfig.java:106 rmiUri:
> //localhost:1099/jackrabbit.repository 2013-05-13 18:29:00.348 INFO
> [main] AbstractConfig.java:106 rmiPort: 1099 2013-05-13
> 18:29:00.348 INFO  [main] AbstractConfig.java:106 rmiEnabled: true 
> 2013-05-13 18:29:00.348 INFO  [main] AbstractConfig.java:106 
> rmiHost: localhost 2013-05-13 18:29:00.349 INFO  [main]
> AbstractConfig.java:108 
> ---------------------------------------------- 2013-05-13
> 18:29:00.443 INFO  [main] RepositoryImpl.java:256 Starting
> repository... 2013-05-13 18:29:00.446 INFO  [main]
> LocalFileSystem.java:164 LocalFileSystem initialized at path 
> /opt/jackrabbit-repository/jackrabbit/repository 2013-05-13
> 18:29:00.548 INFO  [main] NodeTypeRegistry.java:870 no custom node
> type definitions found 2013-05-13 18:29:00.803 INFO  [main]
> LocalFileSystem.java:164 LocalFileSystem initialized at path 
> /opt/jackrabbit-repository/jackrabbit/version 2013-05-13
> 18:29:02.100 INFO  [main] RepositoryImpl.java:2001 initializing
> workspace 'default'... 2013-05-13 18:29:02.101 INFO  [main]
> LocalFileSystem.java:164 LocalFileSystem initialized at path 
> /opt/jackrabbit-repository/jackrabbit/workspaces/default 2013-05-13
> 18:29:02.172 INFO  [main] ClusterNode.java:432 not started:
> namespace operation ignored. 2013-05-13 18:29:02.173 INFO  [main]
> ClusterNode.java:432 not started: namespace operation ignored. 
> 2013-05-13 18:29:02.174 INFO  [main] ClusterNode.java:432 not
> started: namespace operation ignored. 2013-05-13 18:29:02.724 INFO
> [main] MultiIndex.java:1222 indexing... 
> /jcr:system/jcr:nodeTypes/rep:Activities/jcr:childNodeDefinition
> (100) 2013-05-13 18:29:02.937 INFO  [main] SearchIndex.java:601 
> Index initialized: 
> /opt/jackrabbit-repository/jackrabbit/repository/index Version: 3 
> 2013-05-13 18:29:02.956 INFO  [main] SearchIndex.java:601 Index
> initialized: 
> /opt/jackrabbit-repository/jackrabbit/workspaces/default/index
> Version: 3 2013-05-13 18:29:02.957 INFO  [main]
> RepositoryImpl.java:2005 workspace 'default' initialized 2013-05-13
> 18:29:02.960 INFO  [main] ClusterNode.java:1064 not started:
> namespace operation ignored. 2013-05-13 18:29:02.960 INFO  [main]
> RepositoryImpl.java:520 created system workspace: security 
> 2013-05-13 18:29:02.964 INFO  [main] RepositoryImpl.java:452 
> SecurityManager = class
> org.apache.jackrabbit.core.DefaultSecurityManager 2013-05-13
> 18:29:02.964 INFO  [main] RepositoryImpl.java:2001 initializing
> workspace 'security'... 2013-05-13 18:29:02.964 INFO  [main]
> LocalFileSystem.java:164 LocalFileSystem initialized at path 
> /opt/jackrabbit-repository/jackrabbit/workspaces/security 
> 2013-05-13 18:29:02.993 INFO  [main] SearchIndex.java:601 Index
> initialized: 
> /opt/jackrabbit-repository/jackrabbit/workspaces/security/index
> Version: 3 2013-05-13 18:29:02.993 INFO  [main]
> RepositoryImpl.java:2005 workspace 'security' initialized 
> 2013-05-13 18:29:02.994 INFO  [main]
> DefaultSecurityManager.java:172 init: use Repository
> Login-Configuration for Jackrabbit 2013-05-13 18:29:03.026 INFO
> [main] RepositoryImpl.java:364 Repository started (2583ms) 
> 2013-05-13 18:29:03.051 INFO  [main]
> RepositoryStartupServlet.java:568 Repository bound via RMI with
> name: //localhost:1099/jackrabbit.repository 2013-05-13
> 18:29:03.053 INFO  [main] RepositoryStartupServlet.java:458 
> Repository bound to JNDI with name: jackrabbit.repository 
> 2013-05-13 18:29:03.053 INFO  [main]
> RepositoryStartupServlet.java:246 RepositoryStartupServlet
> initialized. 2013-05-13 18:29:03.056 INFO  [main]
> RepositoryAccessServlet.java:98 RepositoryAccessServlet
> initialized. 2013-05-13 18:29:03.066 INFO  [main]
> AbstractWebdavServlet.java:169 authenticate-header = Basic
> realm="Jackrabbit Webdav Server" 2013-05-13 18:29:03.066 INFO
> [main] AbstractWebdavServlet.java:174 csrf-protection = null 
> 2013-05-13 18:29:03.066 INFO  [main]
> AbstractWebdavServlet.java:181 createAbsoluteURI = true 2013-05-13
> 18:29:03.066 INFO  [main] SimpleWebdavServlet.java:144 
> resource-path-prefix = '/repository' 2013-05-13 18:29:03.125 INFO
> [main] AbstractWebdavServlet.java:169 authenticate-header = Basic
> realm="Jackrabbit Webdav Server" 2013-05-13 18:29:03.125 INFO
> [main] AbstractWebdavServlet.java:174 csrf-protection = null 
> 2013-05-13 18:29:03.126 INFO  [main]
> AbstractWebdavServlet.java:181 createAbsoluteURI = true May 13,
> 2013 6:29:03 PM org.apache.coyote.http11.Http11Protocol start INFO:
> Starting Coyote HTTP/1.1 on http-8080 May 13, 2013 6:29:03 PM
> org.apache.catalina.startup.Catalina start INFO: Server startup in
> 3294 ms
> 
> 

- -- 
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRke0oAAoJED/JtliXIA4s7TgH/0S0gdJwvrF3H4psulWEkpyt
zhikPSW0n5Eb046QAdS1LIOJRjPPYFd059ZkE7TzdL6Ir91Rg+GLmmGtSo0Ar3u4
SMee8++dCzx9PgcrpZv9B71OvlM2IvIjksPewFh66xmZDenKGLlr2FlP9r4uBMO4
fPD1th1ozJaLOPUbvvRf8qt5W1hnETsvGe4yjAKb2wKZNi3pMYYlQPFkRw93mu2H
QzAk+KYsyYKIt9+lhW8n9ZSl1krVWO5UTdE34DHIMWwZU0qnhHZmxdCdx9dqQL1W
W7Oy3Fn01PvbpZMhp5NmDCtVigaZC7DvcDL/+FxTszpkl7yBiwc9Kbv8TfhWEpk=
=bP/m
-----END PGP SIGNATURE-----

Mime
View raw message