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

Reply via email to