You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Anton Bachevsky <aa...@ciklum.com> on 2012/03/26 15:13:13 UTC
org.apache.jackrabbit.jca.JCASessionHandle ClassCastException
Hi to all,
We are trying run Jackrabbit garbage collector on scheduler.
Jackrabbit deployed under GF 3.0.1 using JCA.
The code is following:
JCASessionHandle jcaSession = (JCASessionHandle)
getSessionFactory().getSession();
SessionImpl session = (SessionImpl) jcaSession.getWorkspace().getSession();
gc = session.createDataStoreGarbageCollector();
On the first line always exception appears:
java.lang.ClassCastException: org.apache.jackrabbit.jca.JCASessionHandle
cannot be cast to org.apache.jackrabbit.jca.JCASessionHandle
Any idea?!
Regards,
Anton
AW: org.apache.jackrabbit.jca.JCASessionHandle ClassCastException
Posted by KÖLL Claus <C....@TIROL.GV.AT>.
Hi Anton,
I think this comes from the classloader policy of your server.
I know it from Websphere that you can define one ClassLoader per Application
and if we do not set this we had a similar Exception.
Maybe this articel will help you
http://stackoverflow.com/questions/826319/classcastexception-when-casting-to-the-same-class
greest
claus