title: JDK 11; JAX-WS; Provider com.sun.xml.internal.ws.spi.ProviderImpl not found
body: <p>I Need to access legacy SOAP webservices in JDK 11. But I am suffering "ProviderImpl not found."</p>
  
  <p>The JDK 11 implementation is: zulu11.2.3-jdk11.0.1-win_x64.</p>
  
  <p>In my build.gradle, I have the following dependency:</p>
  
  <pre><code>compile group: 'com.sun.xml.ws', name: 'jaxws-rt', version: '2.3.1', ext: 'pom', { force = true }
  </code></pre>
  
  <p>My WAR file's WEB-INF/lib
   contains
  <a href="https://i.stack.imgur.com/mBsKL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mBsKL.png" alt="enter image description here"></a></p>
  
  <p>I am seeing:</p>
  
  <pre><code>javax.xml.ws.WebServiceException: Provider com.sun.xml.internal.ws.spi.ProviderImpl not found
      at javax.xml.ws.spi.FactoryFinder$1.createException(FactoryFinder.java:61) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.spi.FactoryFinder$1.createException(FactoryFinder.java:58) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.spi.ServiceLoaderUtil.newInstance(ServiceLoaderUtil.java:103) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:112) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.spi.Provider.provider(Provider.java:96) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.Service.&lt;init&gt;(Service.java:112) ~[jaxws-api-2.3.1.jar:na]
  </code></pre>
  
  <p>Following <a href="https://github.com/javaee/metro-jax-ws/issues/1247" rel="noreferrer">https://github.com/javaee/metro-jax-ws/issues/1247</a> I have tried setting:</p>
  
  <p>-Djavax.xml.ws.spi.Provider=com.sun.xml.ws.spi.ProviderImpl</p>
  
  <p>But I still get:</p>
  
  <pre><code>javax.xml.ws.WebServiceException: Provider com.sun.xml.ws.spi.ProviderImpl not found
      at javax.xml.ws.spi.FactoryFinder$1.createException(FactoryFinder.java:61) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.spi.FactoryFinder$1.createException(FactoryFinder.java:58) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.spi.ServiceLoaderUtil.newInstance(ServiceLoaderUtil.java:103) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.spi.FactoryFinder.fromSystemProperty(FactoryFinder.java:122) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:99) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.spi.Provider.provider(Provider.java:96) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.Service.&lt;init&gt;(Service.java:112) ~[jaxws-api-2.3.1.jar:na]
      ...
  Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.spi.ProviderImpl
      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) ~[na:na]
      at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na]
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[na:na]
      at javax.xml.ws.spi.ServiceLoaderUtil.nullSafeLoadClass(ServiceLoaderUtil.java:90) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.spi.ServiceLoaderUtil.safeLoadClass(ServiceLoaderUtil.java:123) ~[jaxws-api-2.3.1.jar:na]
      at javax.xml.ws.spi.ServiceLoaderUtil.newInstance(ServiceLoaderUtil.java:101) ~[jaxws-api-2.3.1.jar:na]
      ... 22 common frames omitted
  </code></pre>
  
  <p>I have verified that com.sun.xml.ws.spi.ProviderImpl IS available:</p>
  
  <p><a href="https://i.stack.imgur.com/cU52u.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cU52u.png" alt="enter image description here"></a></p>
  
  <p>Is there a known working example of this combination available "out there"?</p>
  
  <p>Thoughts/suggestions gratefully accepted.</p>