Search code examples
javaapache-axisnoclassdeffounderrorhttpexception

NoClassDefFoundError: org/apache/commons/httpclient/HttpException while making WS call with Axis2


I'm making a soap call with Axis2 1.6.2 (ADB generated classes) and httpclient 4.2.1. for some reason it throws me NoClassDefFoundError: org/apache/commons/httpclient/HttpException.

I checked HttpException is in a different package now for HttpClient 4.

Can anyone think of any reason why it throws that error?


Solution

  • The HTTP transport in Axis2 1.6.x uses commons-httpclient 3.x. Only Axis2 1.7.x has support for HttpClient 4.x.