Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 63037 invoked from network); 19 May 2007 19:40:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 May 2007 19:40:34 -0000 Received: (qmail 7524 invoked by uid 500); 19 May 2007 19:40:39 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 7503 invoked by uid 500); 19 May 2007 19:40:39 -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 7493 invoked by uid 99); 19 May 2007 19:40:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 May 2007 12:40:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [216.170.99.246] (HELO mail.authsum.com) (216.170.99.246) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 May 2007 12:40:32 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.authsum.com (Postfix) with ESMTP id BA693780FF for ; Sat, 19 May 2007 15:40:12 -0400 (EDT) X-Virus-Scanned: amavisd-new at X-Spam-Score: -4.043 X-Spam-Level: Received: from mail.authsum.com ([127.0.0.1]) by localhost (mail.authsum.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ex6nhZB2qjL0 for ; Sat, 19 May 2007 15:40:11 -0400 (EDT) Received: from mail.authsum.com (mail.authsum.com [216.170.99.246]) by mail.authsum.com (Postfix) with ESMTP id 5CB5C780FA for ; Sat, 19 May 2007 15:07:57 -0400 (EDT) Message-ID: <10408839.7421179601677044.JavaMail.root@mail.rhoderunner.com> Date: Sat, 19 May 2007 15:07:57 -0400 (EDT) From: Phillip Rhodes To: users Subject: Beginner cnd question MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [67.186.34.237] X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-4.043 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, AWL=0.356, BAYES_00=-2.599] I am starting out with cnd. I am successfully registering some simple node types programmatically on my repo startup. My question is that I am trying to setup a custom node type that extends an nt:folder to be able to hold objects of type "stitch:tag" I have been trying several different ways in cnd to represent this, but haven't got the cnd working yet. Here is the latest cnd that is generating this error: /* the stitch folder extends the nt:folder */ [stitches:folder] > nt:folder - stitches:contentType (string) + stitches:tag (stitches:tag) /* This is a simple tag */ [stitches:tag] > nt:resource I want to say how thankful I am to this community for helping me out so far, I hope I can return the favor by the success of this open source library that will allow drop in components to manage common objects in the web world (e.g. images, html, etc). This version fails with a org.apache.jackrabbit.core.nodetype.InvalidNodeTypeDefException: [{http://stitches.authsum.com/stitches}folder#{http://stitches.authsum.com/stitches}tag] invalid required primary type: {http://stitches.authsum.com/stitches}tag at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.validateNodeTypeDef(NodeTypeRegistry.java:1655) at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.internalRegister(NodeTypeRegistry.java:1158) at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.registerNodeType(NodeTypeRegistry.java:174) at org.authsum.stitches.server.StitchServiceImpl.RegisterCustomNodeTypes(StitchServiceImpl.java:236) at org.authsum.stitches.server.StitchServiceImpl$1.doInJcr(StitchServiceImpl.java:177)