JAX-WS removed from Java 11
JAX-WS is no longer bundled with Java 11.
According to the release notes, Java 11 removed the Java EE modules:
java.xml.ws (JAX-WS, plus the related technologies SAAJ and Web Services Metadata) - REMOVED
- Java 8 - OK
- Java 9 - DEPRECATED
- Java 10 - DEPRECATED
- Java 11 - REMOVED
See JEP 320 for more info.
You can fix the issue by using alternate versions of the Java EE technologies. Simply add a com.sun.xml.ws : jaxws-ri Maven artifact that contains the technologies you need:
com.sun.xml.ws
jaxws-ri
2.3.2
pom
Jakarta EE 8 update (Mar 2020)
Instead of using old JAX-WS module you can fix the issue by using Jakarta XML Web Services from Jakarta EE 8:
jakarta.xml.ws
jakarta.xml.ws-api
2.3.3
com.sun.xml.ws
jaxws-rt
2.3.3
runtime
Jakarta EE 9 update (Nov 2020)
Use latest release of Jakarta XML Web Services 3.0:
- Jakarta EE9 API jakarta.xml.ws-api
- compatible implementation jaxws-rt
jakarta.xml.ws
jakarta.xml.ws-api
3.0.0
com.sun.xml.ws
jaxws-rt
3.0.0
runtime
Note: change javax.* imports to jakarta.*