title: Error java.lang.NoClassDefFoundError: org/jboss/resteasy/core/ResourceMethod when tried to migrate JBoss 6.3 to WildFly 10
body: <p>I need some help by you.
  I'm trying to migrate my application in JBoss 6.3 to WildFly 10, but when I start the wildFly I have the follow error:</p>
  <p><em><strong>org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host.&quot;/Backoffice/api/soa/financeiro/spo/1.0&quot;: java.lang.NoClassDefFoundError: org/jboss/resteasy/core/ResourceMethod</strong></em></p>
  <p>I'm using the resteasy version 3.0.19.Final and tried use others older and newer...but always this error occurred.</p>
  <p>This is my dependencies in pom.xml</p>
  <pre><code>   &lt;!-- core library --&gt;
     &lt;dependency&gt;
        &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
        &lt;artifactId&gt;resteasy-jaxrs&lt;/artifactId&gt;
        &lt;version&gt;3.0.19.Final&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
     &lt;/dependency&gt;
     &lt;dependency&gt;
        &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
        &lt;artifactId&gt;resteasy-client&lt;/artifactId&gt;
        &lt;version&gt;3.0.19.Final&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
     &lt;/dependency&gt;
     &lt;!-- multipart/form-data and multipart/mixed support --&gt;
     &lt;dependency&gt;
        &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
        &lt;artifactId&gt;resteasy-multipart-provider&lt;/artifactId&gt;
        &lt;version&gt;3.0.19.Final&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
     &lt;/dependency&gt;
  </code></pre>
  <p>My JBoss-web.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;jboss-web&gt;
    &lt;context-root&gt;/Backoffice/${context.root}/${api.version}&lt;/context-root&gt;
  &lt;/jboss-web&gt;
  </code></pre>
  <p>And my jboss-deployment-structure.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;jboss-deployment-structure&gt;
      &lt;deployment&gt;
          &lt;dependencies&gt;
              
              &lt;!--module name=&quot;org.apache.commons.codec&quot; /--&gt;
              &lt;module name=&quot;org.apache.commons.lang&quot; /&gt;
              &lt;module name=&quot;org.apache.httpcomponents&quot; /&gt;
              
              &lt;!-- &lt;module name=&quot;br.com.tm.seguradora.soa.thread&quot; /&gt; --&gt;
              &lt;!--module name=&quot;net.sf.json&quot; /--&gt;
              &lt;!-- &lt;module name=&quot;javax.interceptor.api&quot; export=&quot;true&quot;/&gt; --&gt;
              &lt;module name=&quot;org.jboss.resteasy.resteasy-jaxrs&quot; export=&quot;true&quot;/&gt;
          &lt;/dependencies&gt;
      &lt;/deployment&gt;
  &lt;/jboss-deployment-structure&gt;
  </code></pre>
  <p>My module.xml for resteasy-jaxrs</p>
  <pre><code>&lt;module xmlns=&quot;urn:jboss:module:1.3&quot; name=&quot;org.jboss.resteasy.resteasy-jaxrs&quot;&gt;
  
      &lt;resources&gt;
          &lt;resource-root path=&quot;async-http-servlet-3.0-3.0.19.Final.jar&quot;/&gt;
          &lt;resource-root path=&quot;resteasy-jaxrs-3.0.19.Final.jar&quot;/&gt;
          &lt;!--&lt;resource-root path=&quot;resteasy-client-3.0.19.Final.jar&quot;/&gt;--&gt;
      &lt;/resources&gt;
  
      &lt;dependencies&gt;
          &lt;module name=&quot;javax.api&quot;/&gt;
          &lt;module name=&quot;javax.annotation.api&quot;/&gt;
          &lt;module name=&quot;javax.activation.api&quot;/&gt;
          &lt;module name=&quot;javax.validation.api&quot;/&gt;
          &lt;module name=&quot;javax.enterprise.api&quot;/&gt;
          &lt;module name=&quot;javax.xml.bind.api&quot;/&gt;
          &lt;module name=&quot;javax.ws.rs.api&quot;/&gt;
          &lt;module name=&quot;org.apache.commons.io&quot;/&gt;
          &lt;module name=&quot;org.apache.commons.codec&quot; /&gt;
          &lt;module name=&quot;org.apache.httpcomponents&quot;/&gt;
          &lt;module name=&quot;org.apache.log4j&quot;/&gt;
          &lt;module name=&quot;org.hibernate.validator&quot; optional=&quot;true&quot; services=&quot;import&quot;/&gt;
          &lt;module name=&quot;org.slf4j&quot; /&gt;
          &lt;module name=&quot;javax.servlet.api&quot;/&gt;
          &lt;!--&lt;module name=&quot;org.jboss.resteasy.resteasy-validator-provider-11&quot; optional=&quot;true&quot; services=&quot;export&quot; export=&quot;true&quot;/&gt;--&gt;
          &lt;module name=&quot;org.jboss.logging&quot;/&gt;
      &lt;/dependencies&gt;
  &lt;/module&gt;
  </code></pre>
  <p>And my module.xml for resteasy-multipart-provider:</p>
  <pre><code>&lt;module xmlns=&quot;urn:jboss:module:1.3&quot; name=&quot;org.jboss.resteasy.resteasy-multipart-provider&quot;&gt;
  
      &lt;resources&gt;
          &lt;resource-root path=&quot;resteasy-multipart-provider-3.0.19.Final.jar&quot;/&gt;
      &lt;/resources&gt;
  
      &lt;dependencies&gt;
          &lt;module name=&quot;javax.xml.bind.api&quot;/&gt;
          &lt;module name=&quot;javax.api&quot;/&gt;
          &lt;module name=&quot;javax.enterprise.api&quot;/&gt;
          &lt;module name=&quot;javax.mail.api&quot;/&gt;
          &lt;module name=&quot;javax.servlet.api&quot;/&gt;
          &lt;module name=&quot;javax.ws.rs.api&quot;/&gt;
          &lt;module name=&quot;org.apache.james.mime4j&quot;/&gt;
          &lt;module name=&quot;org.jboss.resteasy.resteasy-jaxb-provider&quot;/&gt;
          &lt;module name=&quot;org.jboss.resteasy.resteasy-jaxrs&quot;/&gt;
          &lt;module name=&quot;org.jboss.resteasy.resteasy-multipart-provider&quot;/&gt;
          &lt;module name=&quot;org.jboss.logging&quot;/&gt;
      &lt;/dependencies&gt;
  &lt;/module&gt;
  </code></pre>
  <p>Somebody knows what could happening please? When I start <strong>Jboss eap 6.3</strong> Its works fine without errors.</p>
  <p>Thanks for all!!</p>