I have trouble with CXF 2.7.0 in a JBoss AS7 environment. There is a classpath conflict with the RESTEasy Response class:
Caused by: java.lang.ClassCastException: org.jboss.resteasy.core.ServerResponse cannot be cast to org.apache.cxf.jaxrs.impl.ResponseImpl at org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:975) ...
Google around and added the following configuration in jboss_deployement_structure.xml file. But no luck I am using jboss7.1.1 as my application server. Any thoughts on this. Thanks for the help
<sub-deployment name="tfnmgr.war">
<exclusions>
<module name="org.jboss.resteasy.resteasy-atom-provider"/>
<module name="org.jboss.resteasy.resteasy-cdi"/>
<module name="org.jboss.resteasy.resteasy-jaxrs"/>
<module name="org.jboss.resteasy.resteasy-jaxb-provider"/>
<module name="org.jboss.resteasy.resteasy-jackson-provider"/>
<module name="org.jboss.resteasy.resteasy-jettison-provider"/>
<module name="org.jboss.resteasy.resteasy-yaml-provider"/>
<module name="org.jboss.as.webservices.*"/>
<module name="org.jboss.ws.*" />
<module name="org.jboss.resteasy.resteasy-jsapi"/>
<module name="org.jboss.resteasy.resteasy-multipart-provider"/>
<module name="org.jboss.resteasy.async-http-servlet-30"/>
</exclusions>
</sub-deployment>