jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Roeloffzen" <ted.roeloff...@gmail.com>
Subject Re: Registering namespaces
Date Tue, 14 Nov 2006 09:55:39 GMT
Okay, here is a small portion of the CND file. When I want to register the
nodetypes described in this CND file, I get an error the
http://kronos.comis not a registered namespaec URI.

Ted

2006/11/10, Stefan Guggisberg <stefan.guggisberg@gmail.com>:
>
> ted, i can't help you unless you provide more details.
> i suggest you prepare a small cnd file that demonstrates
> your issue and post it to the users list.
>
> cheers
> stefan
>
> On 11/10/06, Ted Roeloffzen <ted.roeloffzen@gmail.com> wrote:
> > I have the namespace at the top of my CND file, but I still get the
> error
> > message.
> >
> > Ted
> >
> > 2006/11/10, Stefan Guggisberg <stefan.guggisberg@gmail.com>:
> > >
> > > On 11/10/06, Ted Roeloffzen <ted.roeloffzen@gmail.com> 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.  <kronos="
> http://kronos.com">,
> > > 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 <stefan.guggisberg@gmail.com>:
> > > > >
> > > > > On 11/10/06, Ted Roeloffzen <ted.roeloffzen@gmail.com> 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 <ted.roeloffzen@gmail.com>:
> > > > > > >
> > > > > > > Okay thank you very much.
> > > > > > >
> > > > > > > Ted
> > > > > > >
> > > > > > > 2006/11/10, Tobias Bocanegra <tobias.bocanegra@day.com>:
> > > > > > > >
> > > > > > > > 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 <ted.roeloffzen@gmail.com>
> 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>---
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message