Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 30342 invoked from network); 7 Aug 2006 19:09:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Aug 2006 19:09:03 -0000 Received: (qmail 12834 invoked by uid 500); 7 Aug 2006 19:09:03 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 12822 invoked by uid 500); 7 Aug 2006 19:09:03 -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 12813 invoked by uid 99); 7 Aug 2006 19:09:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 12:09:03 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 12:09:02 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GAASw-0004wV-3P for users@jackrabbit.apache.org; Mon, 07 Aug 2006 12:08:42 -0700 Message-ID: <5691044.post@talk.nabble.com> Date: Mon, 7 Aug 2006 12:08:42 -0700 (PDT) From: JavaJ To: users@jackrabbit.apache.org Subject: Re: Problem adding a child node In-Reply-To: <5690775.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: ponfar99@yahoo.com X-Nabble-From: JavaJ References: <5690775.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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.