After reading this article:
and this artcle:
I am quite certain that JBOSS 4.2.3 class loader is trying to find class ServiceDelegate21 inside lib/endorsed folder but it's somehow different from class inside my EAR file and hence throws a :
java.lang.ClassCastException: org.apache.cxf.jaxws.ServiceImpl cannot
be cast to javax.xml.ws.spi.ServiceDelegate21
Of-course everything works fine if I move the 2 jars form endorsed folder. But this is not an option.
I need to tell JBOSS 4.2.3 GA Class loader from my maven project, to look first inside my EAR and then lib/endorsed folder.
Any ideas?
[edit:]
Inside lib/endored: jboss-jaxws jboss-jaxws-ext
Inside my EAR, I believe the jar tha conflicts is
jaxws-rt-2.1.7.jar
but take a look at e full jar list of my project