close

[Solved] package javax.xml.soap does not exist

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to use SOAP in my project But I am facing following error package javax.xml.soap does not exist in Java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How package javax.xml.soap does not exist Error Occurs ?

I am trying to use SOAP in my project But I am facing following error.

package javax.xml.soap does not exist

How To Solve package javax.xml.soap does not exist Error ?

  1. How To Solve package javax.xml.soap does not exist Error ?

    To Solve package javax.xml.soap does not exist Error JAX-WS removed from Java 11. It is Java 8 – OK Java 9 – DEPRECATED Java 10 – DEPRECATED Java 11 – REMOVED. So that we 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. Now, your error should be solved.

  2. package javax.xml.soap does not exist

    To Solve package javax.xml.soap does not exist Error JAX-WS removed from Java 11. It is Java 8 – OK Java 9 – DEPRECATED Java 10 – DEPRECATED Java 11 – REMOVED. So that we 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. Now, your error should be solved.

Solution 1: use alternate versions

JAX-WS removed from Java 11. It is Java 8 – OK Java 9 – DEPRECATED Java 10 – DEPRECATED Java 11 – REMOVED. So that we 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.

<dependency>
  <groupId>com.sun.xml.ws</groupId>
  <artifactId>jaxws-ri</artifactId>
  <version>2.3.2</version>
  <type>pom</type>
</dependency>

Now, your error should be solved.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment