Vinoj Mathew
2013-04-05 22:17:49 UTC
Vinoj Mathew [https://community.jboss.org/people/mathewvino] created the discussion
"ClassCastException using CXF 2.7.0 JAX-RS Client in JBoss AS7"
To view the discussion, visit: https://community.jboss.org/message/806803#806803
--------------------------------------------------------------
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>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/806803#806803]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
"ClassCastException using CXF 2.7.0 JAX-RS Client in JBoss AS7"
To view the discussion, visit: https://community.jboss.org/message/806803#806803
--------------------------------------------------------------
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>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/806803#806803]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]