title: Apache CXF library detected in ws endpoint deployment
body: <p>I am trying to deploy my WAR app in Wildfly 10.0.0, and I am running into a common issue :</p>
  
  <pre><code>"{\"WFLYCTL0080: Failed services\" =&gt; 
  {\"jboss.deployment.unit.\\\"my-app-ws.war\\\".PARSE\" =&gt;
  \"org.jboss.msc.service.StartException in service jboss.deployment.unit.\\\"my-app.war\\\"
  .PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment \\\"my-app.war\\\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: 
    WFLYWS0059: Apache CXF library (cxf-core-3.1.4.jar) detected in ws endpoint deployment; 
    either provide a proper deployment replacing embedded libraries with container 
    module dependencies or disable the webservices subsystem for the current deployment adding 
    a proper jboss-deployment-structure.xml descriptor to it. The former approach is 
    recommended, as the latter approach causes most of the webservices Java EE and any JBossWS 
    specific functionality to be disabled.\"}}"
  </code></pre>
  
  <p>Then again I tried to make the CXF dependencies scope provided:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-transports-http&lt;/artifactId&gt;
          &lt;version&gt;3.1.4&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-frontend-jaxws&lt;/artifactId&gt;
          &lt;version&gt;3.1.4&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Then I've tried to deploy the WAR archive again, but I run into another problem:</p>
  
  <pre><code>"{\"WFLYCTL0080: Failed services\" =&gt; {\"jboss.deployment.unit.\\\"my-app-ws.war\\\".POST_MODULE\" =&gt; \"org.jboss.msc.service.StartException in service jboss.deployment.unit.\\\"my-app-ws.war\\\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment \\\"my-app-ws.war\\\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: 
    java.lang.ClassNotFoundException: 
    org.apache.cxf.transport.servlet.CXFServlet from [Module \\\"deployment.my-app-ws.war:main\\\" 
    from Service Module Loader]
    Caused by: java.lang.ClassNotFoundException: 
    org.apache.cxf.transport.servlet.CXFServlet from [Module \\\"deployment.my-app-ws.war:main\\\" 
    from Service Module Loader]\"}}"
  </code></pre>
  
  <p>How can I workaround this issue ?</p>