Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 35045 invoked from network); 10 Nov 2009 10:22:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Nov 2009 10:22:55 -0000 Received: (qmail 55345 invoked by uid 500); 10 Nov 2009 10:22:55 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 55278 invoked by uid 500); 10 Nov 2009 10:22:54 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 55267 invoked by uid 99); 10 Nov 2009 10:22:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 10:22:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aklimets@day.com designates 207.126.148.89 as permitted sender) Received: from [207.126.148.89] (HELO eu3sys201aog103.obsmtp.com) (207.126.148.89) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 10 Nov 2009 10:22:45 +0000 Received: from source ([209.85.216.184]) by eu3sys201aob103.postini.com ([207.126.154.11]) with SMTP ID DSNKSvk+34ZZK0lQGF5SeC8mR7dyNHu2ueK/@postini.com; Tue, 10 Nov 2009 10:22:25 UTC Received: by pxi14 with SMTP id 14so2913266pxi.31 for ; Tue, 10 Nov 2009 02:22:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.141.13.13 with SMTP id q13mr491659rvi.40.1257848542405; Tue, 10 Nov 2009 02:22:22 -0800 (PST) In-Reply-To: <1257846588391-585307.post@n4.nabble.com> References: <1257846588391-585307.post@n4.nabble.com> Date: Tue, 10 Nov 2009 11:22:22 +0100 Message-ID: Subject: Re: Weird behaviour with child type resolution From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Nov 10, 2009 at 10:49, panos.athanasiou 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 n= ode > definition found for {http://myNameSpace.org/}YetAnotherEntity > =A0 =A0 =A0 =A0at > org.apache.jackrabbit.core.NodeImpl.internalAddChildNode(NodeImpl.java:76= 8) > =A0 =A0 =A0 =A0at org.apache.jackrabbit.core.NodeImpl.internalAddNode(Nod= eImpl.java:734) > =A0 =A0 =A0 =A0at org.apache.jackrabbit.core.NodeImpl.internalAddNode(Nod= eImpl.java:682) > =A0 =A0 =A0 =A0at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.ja= va:2115) > > Any ideas/suggestions? It should work. Could you post your node type definitions (cnd, xml, whatever you used)? Regards, Alex --=20 Alexander Klimetschek alexander.klimetschek@day.com