Rodolfo - 2008-04-24

hi,
  I tried to deploy artifactory on a Jonas Application server with Tomcat

  followed the war install instructions (not really complex ;) ), the application started ok but when accessing any artifactory url (eg:http://myserver/artifactory/webapp) it failed to create jcr session (see attached stacktrace)

jonas has a "caveat" since it required a jonas-web.xml file to make visible jndi resources to servlets ¿does jcr use any jndi resource? that could be te cause.

  starting with jetty works, but since we have a jonas already running on that host it would be nice deploying artifactory on it.

best regards

rodolfo martin

2008-04-24 13:22:08,728 [ERROR] (SessionImpl.java:242)     - unable to instantiate Session: no principals found
2008-04-24 13:22:08,754 [ERROR] (StandardWrapperValve.java:260)     - Servlet.service() for servlet default threw exception
java.lang.RuntimeException: Failed to create jcr session.
        at org.artifactory.jcr.JcrHelper.newSession(JcrHelper.java:532)
        at org.artifactory.jcr.JcrHelper.bindSession(JcrHelper.java:181)
        at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:77)
        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95)
        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:585)
        at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
        at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:83)
        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:95)
        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:585)
        at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.objectweb.jonas.web.catalina55.ResetAuthenticationValve.invoke(ResetAuthenticationValve.java:62)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.jcr.RepositoryException: unable to instantiate Session: no principals found
        at org.apache.jackrabbit.core.SessionImpl.<init>(SessionImpl.java:243)
        at org.apache.jackrabbit.core.XASessionImpl.<init>(XASessionImpl.java:117)
        at org.apache.jackrabbit.core.RepositoryImpl.createSessionInstance(RepositoryImpl.java:1331)
        at org.apache.jackrabbit.core.RepositoryImpl.createSession(RepositoryImpl.java:863)
        at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1177)
        at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1218)
        at org.artifactory.jcr.JcrHelper.newSession(JcrHelper.java:528)
        ... 46 more