You're really dealing with something OLD here (JBoss AS 4.2.3 was released in July 2008...); the JBossWS Native stack included in AS 4.2.3 had a very early, partial and not-compliant implementation of JAXWS 2.1 which is likely to be the root of the problem here. Removing that jboss-jaxws-ext.jar is probably not that bad solution for you, even if moving to a more recent JBoss AS or at least installing a more recent JBossWS [1] on top of it would really be better.
Cheers
Alessio

[1] http://community.jboss.org/wiki/JBossWS-SupportedTargetContainers <-- jbossws 3.1.1 is the latest compatible with AS 4.2.3

On 04/08/2011 10:18 PM, Matt Shostak wrote:
Hi,

I have a .war file that works on Jboss 5.1.0.  However when I try to deploy it 
on Jboss 4.2.3 it fails with this error:

nested exception is java.lang.ClassCastException: 
org.apache.cxf.jaxws.ServiceImpl cannot be cast to 
javax.xml.ws.spi.ServiceDelegate21


I'm using cxf 2.2.10 and Spring 3.0.1.  If I remove jboss-jaxws.jar and 
jboss-jaxws-ext.jar from lib/endorsed, my .war file will deploy successfully.  
However, removing those libs from the endorsed folder is not a true option for 
me because we don't want to mess with other apps that may rely on those.  So I 
have to try to figure out how to get my .war file deployed.  I've tried 
removing some jars from my war file, but to no avail.  I've also tried adding a 
jboss-web.xml to my WEB-INF folder, with contents:



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC
     "-//JBoss//DTD Web Application 4.2//EN"
     "http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd";>
<jboss-web>
     <class-loading java2ClassLoadingCompliance="false">
         <loader-repository>
                    com.mycompany:loader=myWarFileName
             
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
         </loader-repository>
     </class-loading>
</jboss-web>

but that didn't solve the problem either.

Any advice at all would be greatly appreciated.


Thanks,

Matt




--
Alessio Soldano
Web Service Lead, JBoss

Reply via email to