jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nils Weinander <nils.weinan...@mogul.com>
Subject Adding jcr:title and jcr:description properties
Date Wed, 03 Mar 2010 10:24:06 GMT

Probably a stupid newbie question, but here it goes. I use Jackrabbit 2.0.0
through Spring-JCR. I want to use the jcr:title and jcr:description
properties from the mix:title mixin. The significant portion of the code
looks like this:

   Node containerNode = rootNode.addNode(id, jcrConstants.getNT_FOLDER());
   containerNode.setProperty("jcr:title", title);
   containerNode.setProperty("jcr:description", description);

but containerNode doesn't get the properties. I have tried assigning a
Property variable

   Property prop = containerNode.setProperty("jcr:title", title);

and debug it. When I do I get a log message

ERROR - ItemManager                -
failed to determine path to

which doesn't tell me very much as it is cut off after "path to". I don't
get any exceptions.

What am I doing wrong here?

Nils Weinander
View this message in context: http://n4.nabble.com/Adding-jcr-title-and-jcr-description-properties-tp1576347p1576347.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message