WebContext is no longer honoured after migration from Jboss7 to WildFly10
<p>I am migrating a statless EJB exposed as a web service from JBoss7 AS to WildFly 10 (granted I am a bit late).</p>

<p>The web service used to be accessible by <a href="http://localhost:8080/vmwWS/vmw" rel="nofollow">http://localhost:8080/vmwWS/vmw</a>, moving to WildFly gets me <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a>/vmwWS/WSVMWBean and I haven't found a way to change this.</p>

<p>Here's the web service class</p>

<pre><code>[...]
@Interceptors(TracingInterceptor.class)
@Stateless
@WebService(endpointInterface = "com.mydomain.WSVMW")
@WebContext(contextRoot="/vmwWS", urlPattern ="/vmw", authMethod="BASIC", secureWSDLAccess = false)
@SecurityDomain("JBossWS")
@RolesAllowed({ "Read", "Write" })
public class WSVMWBean implements WSVMW {
[...]
</code></pre>

<p>The Interface:</p>

<pre><code>[...]
@WebService(name = "vmw")
@SOAPBinding(style = Style.DOCUMENT)
@Local
public interface WSVMW {
[...]
</code></pre>

<p>And the jboss-webservice.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;webservices xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.com/xml/ns/javaee/jbossws-web-services_1_0.xsd"
version="1.1"&gt;
  &lt;context-root&gt;vmwWS&lt;/context-root&gt; 
   &lt;port-component&gt;
    &lt;ejb-name&gt;WSVMWBean&lt;/ejb-name&gt;
    &lt;port-component-name&gt;WSVMWBean&lt;/port-component-name&gt;
    &lt;port-component-uri&gt;/vmw&lt;/port-component-uri&gt;
    &lt;auth-method&gt;BASIC&lt;/auth-method&gt;
  &lt;/port-component&gt;
&lt;/webservices&gt;
</code></pre>

<p>The logs say:</p>

<pre><code>22:16:59,520 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-8) JBWS024061: Adding service endpoint metadata: id=WSVMWBean
 address=http://localhost:8080/&lt;ejb-jar-name&gt;/vmwWS/WSVMWBean
 implementor=com.mydomain.WSVMWBean
 serviceName={http://vmw.mydomain.com/}/vmwWS
 portName={http://vmw.mydomain.com/}WSVMWBeanPort
 annotationWsdlLocation=null
 wsdlLocationOverride=null
 mtomEnabled=false
</code></pre>

<p>How do I get the previous behaviour back?</p>