0

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

Gaurav Jeswani
  • 4,410
  • 6
  • 26
  • 47
Rushi
  • 1
  • 1
  • 1

2 Answers2

0

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.

Rifqi
  • 53
  • 7
0

Add webservices-api.jar in project classpath and clean your project.