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.