'Error while importing javax.xml.ws.WebServiceException in java class
while importing javax.xml.ws.WebServiceException; in java file, I am getting compilation error
cannot resolve symbol ws.
I have cleaned and installed dependencies mentioned in POM.xml
Solution 1:[1]
Either it is not correctly stated in your pom.xml. Or the project you're trying to import is meant for JDK 8 which still include the JAX-WS API, and you're using JDK 8+ compiler. See Replacements for deprecated JPMS modules with Java EE APIs.
Edit: add reference.
Solution 2:[2]
Add webservices-api.jar in project classpath and clean your project.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | iftekher2283 |
