[jboss-user] [JBoss Web Services] - Re: ClassCastException using CXF 2.7.0 JAX-RS Client in JBoss AS7

Stéphane Jeandeaux do-not-reply at jboss.com
Sun Jun 16 14:14:27 EDT 2013


Stéphane Jeandeaux [https://community.jboss.org/people/stephane_jeandeaux] created the discussion

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

To view the discussion, visit: https://community.jboss.org/message/823356#823356

--------------------------------------------------------------
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
[https://community.jboss.org/message/823356#823356]

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130616/1b3c1432/attachment.html 


More information about the jboss-user mailing list