[Cosmo-dev] setup WebDAV servlet (from jackrabbit jcr-server) to run

jirina jhonc at centrum.cz
Tue Mar 28 06:07:27 PST 2006


Good Day my name is Georgie and I have wrote you about implementation of CalDAV methods on WebDAV server and you helped me, to write this new methods into service() of  webdav servlet using in jcr-server library from jackrabbit. So I’m now triyng work with this sources, and trying to work with AbstractWebdavServlet (org.apache.jackrabbit.server) or with SimpleWebdavServlet (org.apache.jackrabbit.j2ee). In compiling was everithing allright, but Im not enable to run SimpleWebdavServlet using tomcat, to test webdav capabilities. When I try that, tomcat throw me an Exception report:

java.lang.IllegalStateException: The repository is not available.
	org.apache.jackrabbit.j2ee.RepositoryAccessServlet.getRepository(RepositoryAccessServlet.java:191)

	org.apache.jackrabbit.j2ee.SimpleWebdavServlet.getRepository(SimpleWebdavServlet.java:376)

	org.apache.jackrabbit.j2ee.SimpleWebdavServlet.getDavSessionProvider(SimpleWebdavServlet.java:315)

	org.apache.jackrabbit.server.AbstractWebdavServlet.service(AbstractWebdavServlet.java:202)

	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

       - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

When I try it with AbstractWebdavServlet, the result is this exception Metod:


javax.servlet.ServletException: Error instantiating servlet class org.apache.jackrabbit.server.AbstractWebdavServlet
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	java.lang.Thread.run(Unknown Source)
root cause 
java.lang.InstantiationException
	sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source)
	java.lang.reflect.Constructor.newInstance(Unknown Source)
	java.lang.Class.newInstance0(Unknown Source)
	java.lang.Class.newInstance(Unknown Source)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	java.lang.Thread.run(Unknown Source)


I was trying to search it in some APIs docs, or googole it on Internet, but without lucky. So could you help me, to tell me, what shoud I do (some needing payload descriptor parametres for webdav servlet ??) with the servlet to run it? 

I was also trying to found source code of org.apache.catalina.servlets package, where is  WebdavServlet (extends from DefaultServlet) which is implemented like example in tomcat /wepapps, but also without lucky.

Thanks for any help or any usefully link, George



More information about the cosmo-dev mailing list