jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JavaJ <ponfa...@yahoo.com>
Subject Re: Problem adding a child node
Date Mon, 07 Aug 2006 19:08:42 GMT

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 node's type??

This might explain 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.nabble.com/Problem-adding-a-child-node-tf2065497.html#a5691044
Sent from the Jackrabbit - Users forum at Nabble.com.


Mime
View raw message