JBoss Community

Re: ClassCastException using CXF 2.7.0 JAX-RS Client in JBoss AS7

created by Stéphane Jeandeaux in JBoss Web Services - View the full discussion

Hi Mathew,

 

I have a war and use cxf 2.7.5 and Jboss 7.1.1.Final. That works with jboss-deployment-structure.xml in my web-inf :

 

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">

          <deployment>

                    <exclusions>

                              <!-- Exclude Version cxf of JBOSS -->

                              <module name="org.apache.cxf" />

                              <!-- Exclude JAVA EE of JBOSS (javax.ws..) => Add dependency javax.annotation -->

                              <module name="javaee.api" />

 

 

                              <!-- Exclude RestEasy conflict (javax.ws.rs.ext.RunDelegate) -->

                              <module name="org.jboss.resteasy.resteasy-atom-provider" />

                              <module name="org.jboss.resteasy.resteasy-cdi" />

                              <module name="org.jboss.resteasy.resteasy-jackson-provider" />

                              <module name="org.jboss.resteasy.resteasy-jaxb-provider" />

                              <module name="org.jboss.resteasy.resteasy-jaxrs" />

                              <module name="org.jboss.resteasy.resteasy-jettison-provider" />

                              <module name="org.jboss.resteasy.resteasy-jsapi" />

                              <module name="org.jboss.resteasy.resteasy-multipart-provider" />

                              <module name="org.jboss.resteasy.resteasy-yaml-provider" />

 

                    </exclusions>

 

                    <dependencies>

                              <!-- Add javax.annotation.Ressource -->

                              <module name="javax.annotation.api" />

                    </dependencies>

          </deployment>

</jboss-deployment-structure>

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community