On Tue, Nov 10, 2009 at 10:49, panos.athanasiou
<[email protected]> wrote:
> Thus, i created the following entities:
>
> myNameSpace:BaseEntity
>
> myNameSpace:AnotherEntity with children of type BaseEntity
>
> myNameSpace:YetAnotherEntity having as supertype BaseEntity.
>
>
> Then, i created an instance of myNameSpace:AnotherEntity and tried to add to
> it a Node of type myNameSpace:YetAnotherEntity. To my surprise though, i
> received an exception like the following:
>
> javax.jcr.nodetype.ConstraintViolationException: no definition found in
> parent node's node type for new node: no matching child node definition
> found for {http://myNameSpace.org/}YetAnotherEntity : no matching child node
> definition found for {http://myNameSpace.org/}YetAnotherEntity
>        at
> org.apache.jackrabbit.core.NodeImpl.internalAddChildNode(NodeImpl.java:768)
>        at 
> org.apache.jackrabbit.core.NodeImpl.internalAddNode(NodeImpl.java:734)
>        at 
> org.apache.jackrabbit.core.NodeImpl.internalAddNode(NodeImpl.java:682)
>        at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:2115)
>
> Any ideas/suggestions?

It should work. Could you post your node type definitions (cnd, xml,
whatever you used)?

Regards,
Alex

-- 
Alexander Klimetschek
[email protected]

Reply via email to