jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Harris" <michael.e.har...@gmail.com>
Subject registering a namespace
Date Wed, 20 Aug 2008 16:06:09 GMT
if the project is called proj I have a proj.cnd file

<ns = 'http://whereIwork.org/proj'>
[ns:file] > nt:file
- lockHolder (STRING)
- lockToken (STRING)

In my spring config for the jcrsessionfactory config

<property name="namespaces">
           <prop key="proj">http://whereIwork.org/proj</prop>

I get a NoSuchNodeTypeException

I see in my test output
registering namespace [http://whereIwork.org/proj] under [proj]

In my test I try

Node fileNode = parentFolder.addNode(name, "proj:file");

what am i missing?  Do I change the "ns" to "proj" in my .cnd file?
thanx in advance

Michael Harris

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message