title: JAX-WS in Java 11 and missing class WebParam$Mode
body: <p>I'm trying to use the wsimport tool in Java 11. </p>
  
  <p>I've obtained an open-source version of jax-ws from the Metro project of Eclipse EE4J, at <a href="https://github.com/eclipse-ee4j/metro-jax-ws" rel="nofollow noreferrer">https://github.com/eclipse-ee4j/metro-jax-ws</a> . I've tried versions 2.3.0 and 2.3.1.</p>
  
  <p>Running wsimport leads to included class <a href="https://github.com/eclipse-ee4j/metro-jax-ws/blob/master/jaxws-ri/tools/wscompile/src/main/java/com/sun/tools/ws/processor/modeler/wsdl/WSDLModeler.java" rel="nofollow noreferrer">WSDLModeler</a>, which includes this import:</p>
  
  <pre><code>import javax.jws.WebParam.Mode;
  </code></pre>
  
  <p>Which is not included in the jar files in jaxws-ri, leading to:</p>
  
  <pre><code>   [exec] parsing WSDL...
      [exec] Exception in thread "main" java.lang.NoClassDefFoundError: javax/jws/WebParam$Mode
      [exec]  at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.getParameterOrder(WSDLModeler.java:2585)
      [exec]  at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.processLiteralSOAPOperation(WSDLModeler.java:779)
      ...
  </code></pre>
  
  <p>There is an implementation of WebParam available in the Jakarta project <a href="https://github.com/eclipse-ee4j/jws-api" rel="nofollow noreferrer">jws-api</a> (Jakarta Web Services Metadata project) -- but under new package name <code>jakarta.jws.WebParam</code>.</p>
  
  <p><strong>Questions</strong> </p>
  
  <ul>
  <li>Is there a newer replacement for jax-ws that I should be using instead?</li>
  <li>Or is there an implementation of javax.jws.WebParam from elsewhere I should include in the classpath?</li>
  </ul>