2 Replies Latest reply on Sep 4, 2017 4:56 PM by jmrc_poa

    Wildlfy 10.0 with Jersey 1.19

    jmrc_poa Newbie

      Hi guys,

       

           We need deploy an legacy application with Jersey 1.19 and SpringFramework.

       

           When Rest is requested, it shows:

       

                java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;

       

           After digging here and StackOverflow site, we ended with this configuration on jboss-deployment-structure.xml:

       

      <jboss-deployment-structure>

        <deployment>

       

          <dependencies>

            <module name="org.apache.commons.beanutils" services="import"/>

            <module name="org.apache.commons.collections" services="import"/>

            <module name="org.apache.commons.io" services="import"/>

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

            <module name="org.apache.log4j" services="import"/>

            <module name="org.slf4j" services="import"/>

         </dependencies>

       

        <exclude-subsystems>

          <subsystem name="ejb3"/>

            <subsystem name="infinispan"/>

            <subsystem name="jaxrs"/>

            <subsystem name="jca"/>

            <subsystem name="jdr"/>

            <subsystem name="jpa"/>

            <subsystem name="jsf"/>

            <subsystem name="jmx"/>

       

            <subsystem name="remoting"/>

            <subsystem name="resteasy" />

            <subsystem name="security-manager"/>

            <subsystem name="security"/>

            <subsystem name="webservices" />

            <subsystem name="weld" />

          </exclude-subsystems>

       

          <exclusions>

            <module name="javaee.api" />

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

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

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

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

            <module name="javax.xml.soap.api" />

       

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

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

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

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

            <module name="org.jboss.as.webservices.server.integration" />

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

       

            <module name="org.jboss.narayana.compensations" />

            <module name="org.jboss.narayana.rts" />

            <module name="org.jboss.narayana.txframework" />

       

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

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

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

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

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

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

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

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

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

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

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

            <module name="org.jboss.resteasy.async-http-servlet-30" />

       

           <module name="org.wildfly.extension.rts" />

           <module name="org.jboss.ws.common" />

          </exclusions>

        </deployment>

      </jboss-deployment-structure>

       

       

      What other modules we need to turn off for Jersey works withou conflict with Jax-RS-2.0 ?

       

      We can't update Jersey neither change standalone.xml, because server is used by another applications....

       

       

      Thank's in advance

      Jaime