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 Fri, 10 Nov 2006 11:06:32 GMT
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");

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/alternative (inline, None, 0 bytes)
View raw message