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

Brian Moseley bcm at osafoundation.org
Tue Mar 28 08:26:05 PST 2006


On 3/28/06, jirina <jhonc at centrum.cz> wrote:
> 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:

hi georgie. questions about jackrabbit code should be directed to
dev at jackrabbit.apache.org.

in this case, i happen to know the answer to your question. if you
look at the original stack trace, you will see that the exception is
being thrown by RepositoryAccessServlet. SimpleWebdavServlet needs to
operate on an instance of javax.jcr.Repository, and relies on
RepositoryAccessServlet to provide one. you need to configure
RepositoryAccessServlet in your web.xml just as you did
SimpleWebdavServlet. see jcr-server/webapp for an example
configuration.


More information about the cosmo-dev mailing list