Felix R�thenbacher wrote:

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?


what about endorsed libraries? What about another servlet container as
for instance Tomcat/Catalina?

HTH

Michi


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.<init>(NodeTypeRegistry.java:166)

at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.create(NodeTypeRegistry.java:120)

at org.apache.jackrabbit.core.RepositoryImpl.<init>(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)

....




--
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]



Reply via email to