close

[Solved] java.lang.noclassdeffounderror javax/xml/soap/soapexception

Hello Guys, How are you all? Hope You all Are Fine. Today I am facing following error while run my applocation java.lang.noclassdeffounderror javax/xml/soap/soapexception 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 java.lang.noclassdeffounderror javax/xml/soap/soapexception Error Occurs ?

I am facing following error while run my applocation.

“exception”: “java.lang.NoClassDefFoundError”, “message”: “javax/xml/soap/SOAPException”,

How To Solve java.lang.noclassdeffounderror javax/xml/soap/soapexception Error ?

  1. How To Solve java.lang.noclassdeffounderror javax/xml/soap/soapexception Error ?

    To Solve java.lang.noclassdeffounderror javax/xml/soap/soapexception Error You Just need to add javax.xml.soap in pom.xml file and Now your error will be solved.

  2. java.lang.noclassdeffounderror javax/xml/soap/soapexception

    To Solve java.lang.noclassdeffounderror javax/xml/soap/soapexception Error You Just need to add javax.xml.soap in pom.xml file and Now your error will be solved.

Solution 1: add javax.xml.soap in pom.xml

You Just need to add javax.xml.soap in pom.xml file

<!-- https://mvnrepository.com/artifact/javax.xml.soap/javax.xml.soap-api -->
<dependency>
    <groupId>javax.xml.soap</groupId>
    <artifactId>javax.xml.soap-api</artifactId>
    <version>1.4.0</version>
</dependency>

Solution 2: Add this dependency

Adding this dependency will solve the issue.

    <dependency>
        <groupId>com.sun.xml.messaging.saaj</groupId>
        <artifactId>saaj-impl</artifactId>
        <version>1.5.0</version>
    </dependency>

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