jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "panos.athanasiou" <panos.athanas...@gmail.com>
Subject Weird behaviour with child type resolution
Date Tue, 10 Nov 2009 09:49:48 GMT

I was playing a bit recently with creating custom types in a JackRabbit 1.5.5

Thus, i created the following entities:


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.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?

View this message in context: http://n4.nabble.com/Weird-behaviour-with-child-type-resolution-tp585307p585307.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message