Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 74495 invoked from network); 10 Nov 2006 11:29:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Nov 2006 11:29:00 -0000 Received: (qmail 37944 invoked by uid 500); 10 Nov 2006 11:29:10 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 37922 invoked by uid 500); 10 Nov 2006 11:29:10 -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 37913 invoked by uid 99); 10 Nov 2006 11:29:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 03:29:10 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of stefan.guggisberg@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 03:28:56 -0800 Received: by ug-out-1314.google.com with SMTP id m3so1877808uge for ; Fri, 10 Nov 2006 03:28:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RzJ6WZ667kzHzfsf1IsNhL8ffgTxeDT7psGmU9xzwdIXMxT0MbIklD3emIB2HEsbGvkab51xnTBeOalWaxn49ITfyTt3xfx7/6wTjuLy9len/q78SEDsXJuPIfBkRlOWBUfjaIyYDKShYlEt9e6EaiUpySt8wbeKUP3+5VCw10E= Received: by 10.78.51.9 with SMTP id y9mr2409764huy.1163158114440; Fri, 10 Nov 2006 03:28:34 -0800 (PST) Received: by 10.78.160.11 with HTTP; Fri, 10 Nov 2006 03:28:34 -0800 (PST) Message-ID: <90a8d1c00611100328r363907a8qa86373d5760af19d@mail.gmail.com> Date: Fri, 10 Nov 2006 12:28:34 +0100 From: "Stefan Guggisberg" To: users@jackrabbit.apache.org Subject: Re: Registering namespaces In-Reply-To: <2f35a2640611100306w212d29bej3cc102b2453fa805@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2f35a2640611092329q44162a1eye60f2d34dc0e3665@mail.gmail.com> <8be731880611100107s64b3467bh4b93f446c62c3f8@mail.gmail.com> <2f35a2640611100117j104c2336v8a0f5b7e28f7c94b@mail.gmail.com> <2f35a2640611100225r209986bfm9b1669d1b735c46d@mail.gmail.com> <90a8d1c00611100300y1a6fe8f6u53efd56bc9d7490a@mail.gmail.com> <2f35a2640611100306w212d29bej3cc102b2453fa805@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On 11/10/06, Ted Roeloffzen wrote: > First i want to register the namespace, then i want to register some custom > nodetypes. > > JCRSessionManager.getJCRSession().getWorkspace().getNamespaceRegistry().registerNamespace("kronos", > "http://kronos.com"); > JCRSessionManager.insertNodeTypeDefinition("NodeType.cnd"); did you add the namespace declaration, i.e. , at the top of your .cnd file? for the cnd format see http://jackrabbit.apache.org/api-1/org/apache/jackrabbit/core/nodetype/compact/CompactNodeTypeDefReader.html btw: if you're using o.a.j.api.JackrabbitNodeTypeManager#registerNodeTypes(InputStream, String) you don't have to manually register the namespaces declared in your cnd file. cheers stefan > > Ted > > 2006/11/10, Stefan Guggisberg : > > > > On 11/10/06, Ted Roeloffzen wrote: > > > I registered the namespace, but i still get this error. > > > > > > javax.jcr.NamespaceException: http://kronos.com: is not a registered > > > namespace uri. > > > > you'll have to be a bit more specific than that. what exactly are you > > trying > > to do? > > > > cheers > > stefan > > > > > > > > Ted > > > > > > 2006/11/10, Ted Roeloffzen : > > > > > > > > Okay thank you very much. > > > > > > > > Ted > > > > > > > > 2006/11/10, Tobias Bocanegra : > > > > > > > > > > take a look at: > > > > > > > > > > > > > > > > > http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/NamespaceRegistry.html > > > > > > > > > > regards, toby > > > > > > > > > > On 11/10/06, Ted Roeloffzen wrote: > > > > > > How do I register a new namespace with JackRabbit? Do i have to > > > > > include it > > > > > > manually in the properties file or is there another way. I wasn't > > able > > > > > to > > > > > > find any examples or how to's on the internet. > > > > > > > > > > > > Ted > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > -----------------------------------------< tobias.bocanegra@day.com>--- > > > > > Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 > > Basel > > > > > T +41 61 226 98 98, F +41 61 226 98 97 > > > > > -----------------------------------------------< http://www.day.com>--- > > > > > > > > > > > > > > > > > > > > > > >