You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Punnoose, Roshan" <pu...@bah-systems.com> on 2006/12/19 20:54:28 UTC
EJB call ClassLoader issues
Hi,
I am trying to call a Remote EJB from my Web Service, do I have to
switch the classloader from the thread default to the Axis classloader
to be able to call it? It gives me this error:
java.lang.ClassCastException
at
services.query.ejb.QueryService_9wwn56_HomeImpl_812_WLStub.create(Unknow
n Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.create(Abs
tractSlsbInvokerInterceptor.java:177)
at
org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.newS
essionBeanInstance(AbstractRemoteSlsbInvokerInterceptor.java:205)
at
org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.getSes
sionBeanInstance(SimpleRemoteSlsbInvokerInterceptor.java:108)
at
org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvo
ke(SimpleRemoteSlsbInvokerInterceptor.java:74)
at
org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invo
ke(AbstractRemoteSlsbInvokerInterceptor.java:119)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
lectiveMethodInvocation.java:185)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAo
pProxy.java:209)
Roshan Punnoose
Phone: 301-497-6039