title: jersey with wildfly 10
body: <p>I started jersey rest services project with wildfly server. As Jboss has restEasy default implementation it does not support Jersey. I tried using jboss-deployement-structure.xml, changes in web.xml as false for restEasy, removing jaxrs subsystems in standalaone.xml. Nothing is successful.</p>
  
  <p>Anyone please suggest me the solution who tried and succeeded.
  Jersey version is 2.5.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1"&gt;
    &lt;display-name&gt;RestEasyRemovalTest&lt;/display-name&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
  
  
  
    &lt;servlet&gt;
      &lt;servlet-name&gt;Jersey Web Application&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.glassfish.jersey.servlet.ServletContainer&lt;/servlet-class&gt;
          &lt;init-param&gt;
            &lt;param-name&gt;jersey.config.server.provider.packages&lt;/param-name&gt;
            &lt;param-value&gt;com.accenture.porta&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;jersey.config.server.provider.classnames&lt;/param-name&gt;
              &lt;param-value&gt;org.glassfish.jersey.media.multipart.MultiPartFeature&lt;/param-value&gt;
          &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Jersey Web Application&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/webapi/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  
    &lt;context-param&gt;
          &lt;param-name&gt;resteasy.scan&lt;/param-name&gt;
          &lt;param-value&gt;false&lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;resteasy.scan.providers&lt;/param-name&gt;
          &lt;param-value&gt;false&lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;resteasy.scan.resources&lt;/param-name&gt;
          &lt;param-value&gt;false&lt;/param-value&gt;
      &lt;/context-param&gt;
  
    &lt;!-- &lt;filter&gt;
          &lt;filter-name&gt;sampleFilter&lt;/filter-name&gt;
          &lt;filter-class&gt;com.accenture.porta.MyFilter&lt;/filter-class&gt;
      &lt;/filter&gt;
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;sampleFilter&lt;/filter-name&gt;
          &lt;url-pattern&gt;/webapi/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt; --&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>jboss-deployment-structure.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"&gt;
    &lt;deployment&gt;
      &lt;exclude-subsystems&gt;
        &lt;subsystem name="jaxrs" /&gt;
        &lt;subsystem name="webservices" /&gt;
        &lt;subsystem name="resteasy" /&gt;
      &lt;/exclude-subsystems&gt;
      &lt;exclusions&gt;
        &lt;module name="javaee.api" /&gt;
        &lt;module name="javax.ws.rs.api" /&gt;
        &lt;module name="org.jboss.as.jaxrs" /&gt;
        &lt;module name="org.jboss.resteasy.resteasy-jaxrs" /&gt;
        &lt;module name="org.jboss.resteasy.resteasy-cdi" /&gt;
        &lt;module name="org.jboss.resteasy.jackson-provider" /&gt;
        &lt;module name="org.jboss.resteasy.resteasy-atom-provider" /&gt;
        &lt;module name="org.jboss.resteasy.resteasy-hibernatevalidator-provider" /&gt;
        &lt;module name="org.jboss.resteasy.resteasy-jaxb-provider" /&gt;
        &lt;module name="org.jboss.resteasy.resteasy-jettison-provider" /&gt;
        &lt;module name="org.jboss.resteasy.resteasy-jsapi" /&gt;
        &lt;module name="org.jboss.resteasy.resteasy-multipart-provider" /&gt;
        &lt;module name="org.jboss.resteasy.resteasy-yaml-provider" /&gt;
        &lt;module name="org.codehaus.jackson.jackson-core-asl" /&gt;
        &lt;module name="org.codehaus.jackson.jackson-jaxrs" /&gt;
        &lt;module name="org.codehaus.jackson.jackson-mapper-asl" /&gt;
        &lt;module name="org.codehaus.jackson.jackson-xc" /&gt;
        &lt;module name="org.codehaus.jettison" /&gt;
        &lt;module name="org.jboss.as.webservices.*" /&gt;
        &lt;module name="org.jboss.ws.*" /&gt;
      &lt;/exclusions&gt;
  
      &lt;dependencies&gt;
        &lt;module name="javax.activation.api" export="true" /&gt;
        &lt;module name="javax.annotation.api" export="true" /&gt;
        &lt;!-- &lt;module name="javax.ejb.api" export="true" /&gt;
        &lt;module name="javax.el.api" export="true" /&gt; --&gt;
        &lt;module name="javax.enterprise.api" export="true" /&gt;
        &lt;module name="javax.enterprise.deploy.api" export="true" /&gt;
        &lt;module name="javax.inject.api" export="true" /&gt;
        &lt;module name="javax.interceptor.api" export="true" /&gt;
        &lt;!-- &lt;module name="javax.jms.api" export="true" /&gt;
        &lt;module name="javax.jws.api" export="true" /&gt;
        &lt;module name="javax.mail.api" export="true" /&gt;
        &lt;module name="javax.management.j2ee.api" export="true" /&gt; --&gt;
        &lt;module name="javax.persistence.api" export="true" /&gt;
        &lt;module name="javax.resource.api" export="true" /&gt;
        &lt;!-- &lt;module name="javax.rmi.api" export="true" /&gt;
        &lt;module name="javax.security.auth.message.api" export="true" /&gt;
        &lt;module name="javax.security.jacc.api" export="true" /&gt; --&gt;
        &lt;module name="javax.servlet.api" export="true" /&gt;
        &lt;module name="javax.servlet.jsp.api" export="true" /&gt;
        &lt;module name="javax.transaction.api" export="true" /&gt;
        &lt;module name="javax.validation.api" export="true" /&gt;
  
        &lt;!-- &lt;module name="javax.ws.rs.api" export="true" services="export" /&gt; --&gt;
  
        &lt;module name="javax.xml.bind.api" export="true" /&gt;
        &lt;module name="javax.xml.registry.api" export="true" /&gt;
        &lt;module name="javax.xml.soap.api" export="true" /&gt;
        &lt;module name="javax.xml.ws.api" export="true" /&gt;
  
        &lt;!-- This one always goes last. --&gt;
        &lt;module name="javax.api" export="true" /&gt;
      &lt;/dependencies&gt;
  
    &lt;/deployment&gt;
  &lt;/jboss-deployment-structure&gt;
  </code></pre>