Write a simple webapplication that runs on startup and accesses the JCR API. The cast will work on the server side, because there is no SPI or WebDAV "in between". Then deploy the webapp on the same servlet container as Jackrabbit.
Regards, Alex On Fri, Jul 18, 2008 at 2:29 AM, Julio Castillo <[EMAIL PROTECTED]> wrote: > We are using the jackrabbit Webdav servlets, and the remote client uses the > spi webdav interface. > We'd like to create some custom nodetypes by creating a CND file and using > code shown here: http://yukatan.fi/2006/12/site/doc/nodetype/index.html > > The question is, does this code have to run on the client side or the server > side? > > On the client side, the following line > NodeTypeManagerImpl ntmgr =(NodeTypeManagerImpl)ws.getNodeTypeManager(); > > causes a runtime casting error: [java] > org.apache.jackrabbit.jcr2spi.nodetype.NodeTypeManagerImpl cannot be cast to > org.apache.jackrabbit.core.nodetype.NodeTypeManagerImpl > > If we put this on the server side, where is the best place to do this? > > Thanks > > Julio Castillo > Edgenuity Inc. > > -- Alexander Klimetschek [EMAIL PROTECTED]
