You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Srepfler Srgjan <sr...@lnksystem.com> on 2007/01/16 17:51:38 UTC

JPA effort?

There was a talk some time on this list on how well might JCR be blended 
with a JPA api. Is there anything going on in that direction?

Srgjan

Re: NodeDef creation problem

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On 1/18/07, Pruitt, Steve <SP...@exstream.com> wrote:
> Now I get an exception saying my custom namespace is not defined.  I
> poked aound and nothing obvious popped up on how to do this.

You can standard JCR mechanisms to explicitly register namespaces:

    Session session = ...;
    NamespaceRegistry registry =
        session.getWorkspace().getNamespaceRegistry();
    registry.registerNamespace("prefix", "uri");

PS. I assume you are using the CND parser explicitly instead of the
JackrabbitNodeTypeManager extension interface when registering the
node types. The improvements from JCR-349 and JCR-383 should
automatically cover both your issues.

BR,

Jukka Zitting

RE: NodeDef creation problem

Posted by "Pruitt, Steve" <SP...@exstream.com>.
I added this to my compact notation file...

<nt = http://www.jcp.org/jcr/nt/1.0> and I am now passed my first
problem.

Now I get an exception saying my custom namespace is not defined.  I
poked aound and nothing obvious popped up on how to do this.



-S



-----Original Message-----
From: tobias.strasser@gmail.com [mailto:tobias.strasser@gmail.com] On
Behalf Of Tobias Bocanegra
Sent: Wednesday, January 17, 2007 2:55 AM
To: users@jackrabbit.apache.org
Subject: Re: NodeDef creation problem

you need to mention all namespaces you use in the cnd.
regards, toby

On 1/16/07, Pruitt, Steve <SP...@exstream.com> wrote:
> I'm getting an exception trying to define my node defs.  I am using 
> the CND notation along the compact reader.  In my node def file, I 
> have only defined my node defs along with a namespace at the top of 
> the file.  My first node def has nt:file as its superclass.
>
> The exception I am getting says nt is an unknown prefix.  I thought 
> the primary types were automatically installed.  Is there some step I 
> need to do?  Thanks.
>
>
> -S
>


--
-----------------------------------------< 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 >---

Re: NodeDef creation problem

Posted by Tobias Bocanegra <to...@day.com>.
you need to mention all namespaces you use in the cnd.
regards, toby

On 1/16/07, Pruitt, Steve <SP...@exstream.com> wrote:
> I'm getting an exception trying to define my node defs.  I am using the
> CND notation along the compact reader.  In my node def file, I have only
> defined my node defs along with a namespace at the top of the file.  My
> first node def has nt:file as its superclass.
>
> The exception I am getting says nt is an unknown prefix.  I thought the
> primary types were automatically installed.  Is there some step I need
> to do?  Thanks.
>
>
> -S
>


-- 
-----------------------------------------< 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 >---

NodeDef creation problem

Posted by "Pruitt, Steve" <SP...@exstream.com>.
I'm getting an exception trying to define my node defs.  I am using the
CND notation along the compact reader.  In my node def file, I have only
defined my node defs along with a namespace at the top of the file.  My
first node def has nt:file as its superclass.

The exception I am getting says nt is an unknown prefix.  I thought the
primary types were automatically installed.  Is there some step I need
to do?  Thanks.


-S