Maximus
Maximus

Reputation: 241

SoapUI error on request - NoClassDefFoundError

I am new to web services and I have deployed a web service locally ( I am able to see the wsdl) I tried to query the web service by creating a request in SOAPUI. The response I got back was

     <env:Fault>
     <faultcode>env:Server</faultcode>
     <faultstring>java.lang.NoClassDefFoundError: org/apache/commons/lang/StringEscapeUtils
     </faultstring>
  </env:Fault>

I see a bunch of errors in the jboss console in eclipse...

11:53:06,226 ERROR [SOAPFaultHelperJAXWS] 
SOAP requestexceptionjava.lang.RuntimeException: 
java.lang.NoClassDefFoundError:org/apache/commons/lang/StringEscapeUtils

Can someone help me in figuring out what the problem could be?

Is something wrong with the way I setup my SOAPUI or is it I missed something in my project(web service server)

Upvotes: 0

Views: 2989

Answers (2)

Lachezar Balev
Lachezar Balev

Reputation: 12021

How do you exactly deploy the web service? For example, if you create an .aar archive, please verify that the corresponding jar (commons-lang.jar?) is available into the lib folder of the archive. For example:

your_service_root
  ->META-INF
  ->lib
     ->commons-lang.jar
  -> com
     ->bla
        ->bla

Upvotes: 0

Jigar Joshi
Jigar Joshi

Reputation: 240928

You need commons-lang.jar in your classpath

Upvotes: 1

Related Questions