Re: Problem adding a child node

2007-09-05 Thread Stefan Guggisberg
I try to add a "myApp" child node to > >> > "myAppContainer". > >> > > >> > For example: > >> > > >> > // get the "myAppContainer" node > >> > Node container = rootNode.get("/nodes/myAppCo

Re: Problem adding a child node

2007-09-03 Thread Kaizer
d >> > node definition >> > NodeDefinition[] defs = >> > container.getPrimaryNodeType().getDeclaredChildNodeDefinitions(); >> > >> > // add a new "myApp" node >> > newNode = container.addNode("myNewAppNode", "cm:myApp&qu

Re: Problem adding a child node

2007-09-03 Thread Stefan Guggisberg
ot; child > > node definition > > NodeDefinition[] defs = > > container.getPrimaryNodeType().getDeclaredChildNodeDefinitions(); > > > > // add a new "myApp" node > > newNode = container.addNode("myNewAppNode", "cm:myApp"); > > &g

Re: Problem adding a child node

2007-09-03 Thread Kaizer
.jcr.nodetype.ConstraintViolationException: no definition found in > parent node's node type for new node: > no matching child node definition found for {}myNewAppNode: > > Is there something I'm doing wrong??? > > -- View this message in context: http://www.nabble.com/Problem-adding-a-child-node-tf2065497.html#a12463572 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: Problem adding a child node

2006-08-07 Thread JavaJ
Thank you! -- View this message in context: http://www.nabble.com/Problem-adding-a-child-node-tf2065497.html#a5697836 Sent from the Jackrabbit - Users forum at Nabble.com.

Re: Problem adding a child node

2006-08-07 Thread Jukka Zitting
Hi, On 8/7/06, JavaJ <[EMAIL PROTECTED]> wrote: Debugging the code, I notice that the problem might be in EffectiveNodeType, line 703: ItemDef[] defs = getNamedItemDefs(name); The name that is passed to this method call is the child nodes' name. Shouldn't it be the name of the child no

Re: Problem adding a child node

2006-08-07 Thread Jukka Zitting
Hi, On 8/7/06, JavaJ <[EMAIL PROTECTED]> wrote: [cm:myAppContainer] > nt:base,mix:referenceable,mix:versionable + cm:myApp (cm:myApp) = cm:myApp multiple version [...] // add a new "myApp" node newNode = container.addNode("myNewAppNode", "cm:myApp"); Your child node definition is for a node na

Re: Problem adding a child node

2006-08-07 Thread JavaJ
n why the error message shows the node's name, not it's type: javax.jcr.nodetype.ConstraintViolationException: no definition found in parent node's node type for new node: no matching child node definition found for {}myNewAppNode: -- View this message in context: http://www.nab

Problem adding a child node

2006-08-07 Thread JavaJ
straintViolationException: no definition found in parent node's node type for new node: no matching child node definition found for {}myNewAppNode: Is there something I'm doing wrong??? -- View this message in context: http://www.nabble.com/Problem-adding-a-child-node-tf2065497.html#a5690775 Sent from the Jackrabbit - Users forum at Nabble.com.