Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 17839 invoked from network); 5 May 2005 18:59:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 May 2005 18:59:51 -0000 Received: (qmail 84575 invoked by uid 500); 5 May 2005 19:02:07 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 84510 invoked by uid 99); 5 May 2005 19:02:03 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from ip213-185-42-161.laajakaista.mtv3.fi (HELO hukka.local) (213.185.42.161) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 05 May 2005 12:02:03 -0700 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by hukka.local (8.13.1/8.13.1) with ESMTP id j45Ix0Qf021534 for ; Thu, 5 May 2005 21:59:01 +0300 Subject: Re: builtin_nodetypes.xml Invalid From: Jukka Zitting To: Jackrabbit In-Reply-To: <8D07567F3496FA4797E37564D4B4DC0E84606A@delboy.lan.gossinteractive.com> References: <8D07567F3496FA4797E37564D4B4DC0E84606A@delboy.lan.gossinteractive.com> Content-Type: text/plain Organization: Yukatan Date: Thu, 05 May 2005 21:59:00 +0300 Message-Id: <1115319540.21081.22.camel@hukka.local> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-4) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Good to know that you already found a workaround to this problem. Here's some thoughts of what might be the cause. Simon Gash wrote: > I'm having a problem with a particular installation of jackrabbit > running in Eclipse 3.1. I keep getting an exception. > > javax.jcr.RepositoryException: internal error: invalid built-in node > type definition stored in > org/apache/jackrabbit/core/nodetype/builtin_nodetypes.xml: Invalid > namespace reference in a node type definition: nt: Invalid namespace > reference in a node type definition: nt It seems as if the xmlns:nt namespace setting is not being read by the nodetype reader. The reader code reads all xmlns:* attributes from the root element of the nodetype configuration file and uses them to set up the namespace mappings. I recall a problem in some XML parser implementation that loses the namespace declaration attributes when using the standard DOM access methods. This was a somewhat controversial issue (should the namespace attributes be visible?), but I think the correct answer was that they should be for standard DOM-level access. I suspect that this is the cause of your problem, especially as you were able to fix it by cleaning up the classpath. Can you recall if you had any specific XML parser implementations on the classpath? > On investigation I tried to load builtin_nodetypes.xml into xml spy but > it fails to validate. Is there something wrong or am I missing > something. It could well be that the XML file no longer conforms with the inline DTD included at the beginning of the file. The file is never validated against the DTD when it is accessed by Jackrabbit. I'll investigate this and commit a fix if I find the problem. BR, Jukka Zitting