You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by vlad_v <nu...@yahoo.com> on 2008/10/17 17:50:33 UTC

new node types

Hello to all
 
  I'm facing a problem when trying to register a new node type. 
  Using the examples posted in this forum and on jackrabbit official site

   i receive an exception:  
         java.lang.ClassCastException:
org.apache.jackrabbit.rmi.client.ClientNodeTypeManager

  The code that gives this is:  

  JackrabbitNodeTypeManager manager = (JackrabbitNodeTypeManager)
        session.getWorkspace().getNodeTypeManager();

  or

NodeTypeManagerImpl ntmgr
=(NodeTypeManagerImpl)workspace.getNodeTypeManager();

I use the  
javax.jcr.nodetype NodeTypeManager

the workspace.getNodeTypeManager(); gets at runtime:
 
class org.apache.jackrabbit.rmi.client.ClientNodeTypeManager which cannot be
casted to class

org.apache.jackrabbit.core.nodetype.NodeTypeManagerImpl even if they both
implement the

javax.jcr.nodetype NodeTypeManager

If i posted a problem that was solved already, i apologize but yet
i didn't find a solution. 
I need a new node type  or a new / existing property that stores a
string....
If i don't use TransientRepository but i use the repository object obtained
with rmi 
i cannot store a string in any property.... or am i wrong? ( i hope :) )

Thank you
Regards
Vlad

-- 
View this message in context: http://www.nabble.com/new-node-types-tp20035956p20035956.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.