jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From go canal <goca...@yahoo.com>
Subject Re: PathNotFoundException
Date Wed, 22 Jul 2009 13:50:50 GMT
thanks for reading my email, stefan.

I decided to get my hands 'dirty' - I started not using any OCM for now, just org.springmodules.jcr.JcrTemplate.
Now everything works....

there is an interesting post : http://stackoverflow.com/questions/370557/what-is-the-best-way-to-save-my-pojos-into-jackrabbit-jcr


but i do not know how long I can hold to not using OCM ... journey might be bumpy...need to
learn XPATH, how to define custom node type,........but so far so good :-)

 rgds,
canal




________________________________
From: Stefan Guggisberg <stefan.guggisberg@gmail.com>
To: users@jackrabbit.apache.org
Sent: Wednesday, July 22, 2009 3:35:56 PM
Subject: Re: PathNotFoundException

On Wed, Jul 22, 2009 at 7:45 AM, go canal<gocanal@yahoo.com> wrote:
> Did I misunderstand some basic concept ?
>
> this is how I create a new root node:
>    parentNode = getSession().getRootNode();
>    Node newNode = jcrom.addNode(parentNode, entity, mixinTypes);

i am not familiar with jcrom. you might want to ask on the jcrom list.

cheers
stefan

>
>
> the entity has a path set to "/documents",
>
> immediately, I check the availability:
>   return getSession().getRootNode().hasNode ("documents");
>
> and it says path not found ...
>
>
> rgds,
> canal
>
>



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