WebDAV url syntax?
sjahan May 23, 2011 8:54 AMHi,
This could be kind of a dumb question, but since i don't find any answer on my own...
I get the WebDAV server WAR from the Modeshape 2.4.0 Final for JBoss AS. It deploys completely fine but i don't get it what does it expect about the URL. Whatever i type, i get a blank page as return and an exception in the server:
14:38:06,125 ERROR [WebDavServletBean] Exception: java.lang.IllegalStateException: A valid JCR URL must be provided to use this method. "null" is not a valid JCR URL. Please consult the ModeShape Reference Guide for information on providing a valid JCR URL.
at org.modeshape.jcr.JcrRepositoryFactory.urlFor(JcrRepositoryFactory.java:421)
at org.modeshape.jcr.JcrRepositoryFactory.getRepositories(JcrRepositoryFactory.java:479)
at org.modeshape.web.jcr.spi.FactoryRepositoryProvider.getJcrRepositoryNames(FactoryRepositoryProvider.java:64)
at org.modeshape.web.jcr.RepositoryFactory.getJcrRepositoryNames(RepositoryFactory.java:94)
at org.modeshape.web.jcr.webdav.ModeShapeWebdavStore$JcrSessionTransaction.repositoryAndWorkspaceExist(ModeShapeWebdavStore.java:695)
at org.modeshape.web.jcr.webdav.ModeShapeWebdavStore.repositoryAndWorkspaceExist(ModeShapeWebdavStore.java:617)
at org.modeshape.web.jcr.webdav.ModeShapeWebdavStore.getStoredObject(ModeShapeWebdavStore.java:382)
at net.sf.webdav.methods.DoHead.execute(DoHead.java:68)
at net.sf.webdav.WebDavServletBean.service(WebDavServletBean.java:128)
at org.modeshape.web.jcr.webdav.ModeShapeWebdavServlet.service(ModeShapeWebdavServlet.java:110)
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.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
I consulted the Modeshape reference guide as suggested, but as i didn't find anything in particular about URL in the WebDAV part, i tried some possible syntax but without any effect other that generating this exception. It always tells: "null" is not a valid JCR URL, whatever i type, so i guess it doesn't even read what i type and i should miss some special char or something like this...
Thank you by advance for your help,
SJ.