【问题标题】:NoClassDefFoundError: org/apache/commons/httpclient/HttpException while making WS call with Axis2NoClassDefFoundError: org/apache/commons/httpclient/HttpException 在使用 Axis2 进行 WS 调用时
【发布时间】:2016-07-04 11:16:36
【问题描述】:

我正在使用 Axis2 1.6.2(ADB 生成的类)和 httpclient 4.2.1 进行肥皂调用。出于某种原因,它抛出了 NoClassDefFoundError: org/apache/commons/httpclient/HttpException。

我检查了 HttpException 现在对于 HttpClient 4 在不同的包中。

谁能想到它抛出该错误的任何原因?

【问题讨论】:

    标签: java axis2 noclassdeffounderror httpexception


    【解决方案1】:

    请确保axis2 jar 文件在您的CLASSPATH 中。

    【讨论】:

    • 谢谢。是的。 Axis2 和 HttpClient 相关的 jar 在类路径中
    【解决方案2】:

    Axis2 1.6.x 中的 HTTP 传输使用 commons-httpclient 3.x。只有 Axis2 1.7.x 支持 HttpClient 4.x。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-22
    • 1970-01-01
    • 2017-04-18
    • 2013-06-29
    • 2018-04-03
    • 1970-01-01
    相关资源
    最近更新 更多