jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kurz Wolfgang <wolfgang.k...@gwvs.de>
Subject AW: Problem casting my Session to SessionImpl
Date Wed, 11 Mar 2009 14:03:27 GMT
Yes that was the problem thx a lot!

-----Ursprüngliche Nachricht-----
Von: Alexander Klimetschek [mailto:aklimets@day.com] 
Gesendet: Mittwoch, 11. März 2009 14:59
An: users@jackrabbit.apache.org
Betreff: Re: Problem casting my Session to SessionImpl

On Wed, Mar 11, 2009 at 10:39 AM, Kurz Wolfgang <wolfgang.kurz@gwvs.de> wrote:
> but then I get the following exception:
> javax.el.ELException: java.lang.ClassCastException: org.apache.jackrabbit.core.XASessionImpl
cannot be cast to org.apache.jackrabbit.core.SessionImpl
> I am using a local Repository which is globally available over JNDI.

Looks like a class path problem, because XASessionImpl extends
SessionImpl and casting should work. It's probably that your client
code has a different jackrabbit-core jar in it's classpath than the
actual repository (that passes this over JNDI to the client).


Alexander Klimetschek

View raw message