jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Murley" <dmur...@xbiosystems.com>
Subject RE: New nodeTypes and RMI
Date Thu, 08 Feb 2007 04:56:58 GMT
This may have changed in the last couple of months, however my understanding
is there is no way to register new node types using the jackrabbit RMI
client.  I resorted to writing a nasty little servlet that reads a local
file to load the node definitions.


-----Original Message-----
From: Nicolas Dufour [mailto:nrdufour@gmail.com] 
Sent: Thursday, 8 February 2007 7:06 AM
To: users@jackrabbit.apache.org
Subject: New nodeTypes and RMI


I'm trying to register node types i have written in cnd to a JCR repository
on RMI.

I have trouble to find any documentation about the jackrabbit-jcr-rmi jar.

Do I have to use the class ClientJackrabbitNodeTypeManager and give it a
filename knowing that this piece of code give me an exception :

        // Read in the CND file
        FileInputStream fis = new FileInputStream(cndFileName);

        ClientJackrabbitNodeTypeManager ntmgr
=(ClientJackrabbitNodeTypeManager) ws.getNodeTypeManager();

        ntmgr.registerNodeTypes(fis, "toto");

The exception :

org.apache.jackrabbit.rmi.client.ClientNodeTypeManager cannot be cast to
    at tips.jcr.NodeTypeRegister.registerCustomNodeTypes(
    at tips.jcr.NodeTypeRegister.registerCustomNodeTypesInDefault(
    at tips.jcr.NodeTypeRegister.main(NodeTypeRegister.java:105)

Thank you

Nicolas Dufour

View raw message