Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 80062 invoked from network); 1 Apr 2005 12:55:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Apr 2005 12:55:15 -0000 Received: (qmail 18227 invoked by uid 500); 1 Apr 2005 12:55:03 -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 18102 invoked by uid 99); 1 Apr 2005 12:55:02 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of felix.roethenbacher@wyona.com designates 195.226.6.68 as permitted sender) Received: from mx1.wyona.com (HELO mx1.wyona.com) (195.226.6.68) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 01 Apr 2005 04:55:01 -0800 Received: from gate.wyona.com ([195.226.6.75] helo=[192.168.1.36]) by mx1.wyona.com with esmtp (Exim 3.35 #1 (Debian)) id 1DHLfs-0001cZ-00 for ; Fri, 01 Apr 2005 14:54:56 +0200 Message-ID: <424D45B0.2010902@wyona.com> Date: Fri, 01 Apr 2005 14:59:28 +0200 From: =?ISO-8859-1?Q?Felix_R=F6thenbacher?= User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: Unknown namespace prefix nt References: <424C1F48.1090008@wyona.com> In-Reply-To: <424C1F48.1090008@wyona.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Felix R�thenbacher wrote: > Hi > > when I try to access the repository from within Jetty > > javax.jcr.NamespaceException: Unknown namespace prefix nt. > > exception is thrown. If I access the repository from a > standalone application it works fine. I didn't find > out what the difference between the two types of > running jackrabbit is exactly. It seems that the > NamespaceResolver object is not initialized with the > predefined namespaces. Maybe someone can give me a hint. I did some investigation and found out that the root node of the DOM created from the built-in node types does not have any attributes (namespaces) associated with it when running with jetty. It seems to me that it is a problem with the parser. Any ideas? Thanks Felix > > Thanks > > Felix > > > Stacktrace below: > > Caused by: javax.jcr.NamespaceException: Unknown namespace prefix nt. > at > org.apache.jackrabbit.core.nodetype.xml.AdditionalNamespaceResolver.getURI(AdditionalNamespaceResolver.java:92) > > at org.apache.jackrabbit.core.QName.fromJCRName(QName.java:112) > ... 53 more > javax.jcr.NamespaceException: Unknown namespace prefix nt. > at > org.apache.jackrabbit.core.nodetype.xml.AdditionalNamespaceResolver.getURI(AdditionalNamespaceResolver.java:92) > > at org.apache.jackrabbit.core.QName.fromJCRName(QName.java:112) > at > org.apache.jackrabbit.core.nodetype.xml.CommonFormat.fromJCRName(CommonFormat.java:92) > > at > org.apache.jackrabbit.core.nodetype.xml.CommonFormat.getName(CommonFormat.java:292) > > at > org.apache.jackrabbit.core.nodetype.xml.NodeTypeFormat.readName(NodeTypeFormat.java:109) > > at > org.apache.jackrabbit.core.nodetype.xml.NodeTypeFormat.read(NodeTypeFormat.java:80) > > at > org.apache.jackrabbit.core.nodetype.xml.NodeTypeFormatter.read(NodeTypeFormatter.java:121) > > at > org.apache.jackrabbit.core.nodetype.NodeTypeDefStore.load(NodeTypeDefStore.java:60) > > at > org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.(NodeTypeRegistry.java:166) > > at > org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.create(NodeTypeRegistry.java:120) > > at > org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:269) > at > org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:308) > at > org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableRepository.java:79) > > at > org.apache.jackrabbit.core.jndi.BindableRepository.create(BindableRepository.java:73) > > at > org.apache.jackrabbit.core.jndi.RegistryHelper.registerRepository(RegistryHelper.java:50) > > .... >