0 Replies Latest reply on Feb 8, 2019 7:55 AM by Pradhap Rajamani

    Unable to Deploy Web Application configured with Rest Easy 3.6.1.Final  in Wildfly 11.0.0.Alpha1

    Pradhap Rajamani Newbie

      Hello All,

       

      We have developed a web application with Rest Easy 3.6.1.Final and when we try to deploy the same in Wildfly 11.0.0.Alpha1 in standalone mode (local environment)  it is getting deployed successfully and working as expected  . But when we try to deploy the same application in one of our testing server which is configured with Wildfly 11.0.0.Alpha1 running in domain mode we are getting the following error

       

      java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map

       

      I have explored about this error and found it is because of jboss-jaxrs-api . Since we are using  Rest Easy 3.6.1.Final jars the version of jboss-jaxrs-api which is there in the class path is  jboss-jaxrs-api_2.1_spec-1.0.1.Final . But the version of the same jar in Wildfly modules (javax.ws.rs.api) is  jboss-jaxrs-api_2.0_spec-1.0.0.Final  . I have excluded all resteasy and javax modules in jboss deployment structure . But still getting the same error .  Somebody please help me with resolving the error . Thank you.

       

      Below is my jboss-deployment-structure.xml

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-deployment-structure>

      <deployment>

      <dependencies>

             </dependencies>

             <exclude-subsystems>

                 <subsystem name="resteasy"/>

         <subsystem name="jaxrs"/>

           <subsystem name="javax"/> 

             </exclude-subsystems>

           <exclusions>

        <module name="org.hibernate" />

        <module name="org.jboss.logging" />

        <module name="org.slf4j" />

        <module name="javaee.api" />

             <module name="org.apache.commons.logging"/>

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

             <module name="org.jboss.as.jaxrs"/>

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

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

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

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

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

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

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

             <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"/>

             <module name="org.codehaus.jackson.jackson-core-asl"/>

             <module name="org.codehaus.jackson.jackson-jaxrs"/>

             <module name="org.codehaus.jackson.jackson-mapper-asl"/>

             <module name="org.codehaus.jackson.jackson-xc"/>

             <module name="org.codehaus.jettison"/>

         <module name="com.fasterxml.jackson.core.jackson-core" />

             <module name="com.fasterxml.jackson.core.jackson-annotations" />

             <module name="com.fasterxml.jackson.core.jackson-databind" />

             <module name="com.fasterxml.jackson.datatype.jackson-datatype-jdk8" />

             <module name="com.fasterxml.jackson.datatype.jackson-datatype-jsr310" />

             <module name="com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider" />

              <module name="javax.ws.rs.api"/>

             <module name="javax.ws.rs.core"/>

           </exclusions>

         </deployment>

      </jboss-deployment-structure>