Hi Jukka,

Of course I can share my config (when it works completely ;-)). By the way,
I have copied some code from it from the JBoss Portal, which has integrated
Jack_Rabbit for ist CMS (and everything is Open Source there)....

> Are you sure you do not close the session anywhere? The exception is
> thrown by SessionImpl.sanityCheck() after checking the "alive" flag.
> The flag is only cleared when SessionImpl.close() gets called.

Oh my god, sorry! I have overlooked this little session.close() for a few
hours this morning.. But because of you positive influence now found it :-)
Now it works fine!

Nice work, the JCR-RMI project! The only thing I have to change was the

Naming.lookup()

To 

New InitialContext().lookup()

Thanks a lot
Bernd

P.S: I will send a mail if I have get it to run and provide our examples...


> -----Ursprüngliche Nachricht-----
> Von: Jukka Zitting [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 7. März 2006 12:56
> An: [email protected]
> Betreff: Re: "session has been closed" while using JCR-RMI
> 
> Hi,
> 
> On 3/7/06, Bernd Rücker (camunda) <[EMAIL PROTECTED]> wrote:
> > After a few days playing around with jack-rabbit I mastered 
> it and get it to
> > run as a JBoss-Service :-)
> 
> Nice. Would you be interested in sharing some configuration notes?
> We've seen people asking for JBoss configuration examples or
> instructions, but so far nobody has taken the time to come up with
> anything.
> 
> > But now I have a problem with JCR-RMI. We have a Java 
> Swing-Client with a
> > TableModel which renders the JCR-Nodes.
> >
> > Now I have tried the naive solution and use the rootNode in 
> the TableModel
> > directly. But then I get a
> >
> > Caused by: javax.jcr.RepositoryException: this session has 
> been closed
> >         at
> > 
> org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryExc
> eption(ServerO
> > bject.java:136)
> 
> Are you sure you do not close the session anywhere? The exception is
> thrown by SessionImpl.sanityCheck() after checking the "alive" flag.
> The flag is only cleared when SessionImpl.close() gets called.
> 
> BR,
> 
> Jukka Zitting
> 
> --
> Yukatan - http://yukatan.fi/ - [EMAIL PROTECTED]
> Software craftsmanship, JCR consulting, and Java development
> 

Reply via email to