[jboss-user] [JCA/JBoss] - Re: RA deployment in JBoss
jeff.yuchang
do-not-reply at jboss.com
Wed Oct 17 11:09:06 EDT 2007
Back to the problem.
As I said before, the error that I had firstly is due to the older version (xmlapi.jar and resolver.jar) in the my RAR than the $JBoss/lib, So I remove these two jars to use the jars that JBoss had.
But then I restart it again, it complains the ClassCastException,,, the error stack is:
-------------------------
23:00:59,248 ERROR [STDERR] java.lang.ClassCastException: $Proxy63
23:00:59,248 ERROR [STDERR] at sun.reflect.annotation.AnnotationParser.annotationForMap(Annotati
onParser.java:239)
23:00:59,248 ERROR [STDERR] at sun.reflect.annotation.AnnotationParser.parseAnnotation(Annotatio
nParser.java:229)
23:00:59,248 ERROR [STDERR] at sun.reflect.annotation.AnnotationParser.parseAnnotations2(Annotat
ionParser.java:69)
23:00:59,248 ERROR [STDERR] at sun.reflect.annotation.AnnotationParser.parseAnnotations(Annotati
onParser.java:52)
23:00:59,248 ERROR [STDERR] at java.lang.Class.initAnnotationsIfNecessary(Class.java:3031)
23:00:59,248 ERROR [STDERR] at java.lang.Class.getAnnotation(Class.java:2989)
23:00:59,248 ERROR [STDERR] at org.apache.cxf.jca.servant.EJBEndpoint.isJaxWsServiceInterface(EJ
BEndpoint.java:159)
23:00:59,279 ERROR [STDERR] at org.apache.cxf.jca.servant.EJBEndpoint.publish(EJBEndpoint.java:7
6)
23:00:59,279 ERROR [STDERR] at org.apache.cxf.jca.cxf.JCABusFactory.initializeServantsFromProper
ties(JCABusFactory.java:128)
23:00:59,279 ERROR [STDERR] at org.apache.cxf.jca.cxf.JCABusFactory.access$200(JCABusFactory.jav
a:49)
23:00:59,279 ERROR [STDERR] at org.apache.cxf.jca.cxf.JCABusFactory$EJBServicePropertiesMonitorW
orker.run(JCABusFactory.java:269)
23:00:59,279 ERROR [STDERR] at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
23:00:59,279 ERROR [STDERR] at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.j
ava:275)
23:00:59,279 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Pooled
Executor.java:743)
23:00:59,279 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
The code is:
------------------------
Class<?> interfaceClass = Class.forName(this.getServiceClassName());
if (cls == null) {
return false;
}
if (null != cls.getAnnotation(WebService.class)) {
return true;
}
return true;
So, I suspect that in this situation, it might used the different classloader...
Any thoughts?
Thanks
Jeff
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096137#4096137
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096137
More information about the jboss-user
mailing list