Forum Discussion

Pawankumar's avatar
Pawankumar
Occasional Visitor
10 years ago

java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException

HI All,

 

I am getting the error 

java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException

while running the soapui jobs in jenkins. But when i run the same job in soap ui of windows system it works fine. I will upload the pom.xml and project file. If anyone has encountered the same problem please let me know how to resolve it. I have all the jar files which is required is present but still its not working while running in jenkins. I have also attached the log file and ext folder contains all the ant jar files.

 

thanks and regards,

Pawan

  • nmrao's avatar
    nmrao
    Champion Level 3
    the mentioned class is in ant.jar file, see if that is in classpath.