Websphere httpclient NoSuchMethodError org.apache.http.conn.Scheme [英] Websphere httpclient NoSuchMethodError org.apache.http.conn.Scheme

查看:51
本文介绍了Websphere httpclient NoSuchMethodError org.apache.http.conn.Scheme的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了与此线程中发布的相同的问题 NoSuchMethodError org.apache.http.conn.scheme.Scheme

I'm seeing the same issue as posted in this thread NoSuchMethodError org.apache.http.conn.scheme.Scheme

我想使用 httpclient-4.2.5 并尝试使用上一篇文章中建议的隔离共享库.(共享库与应用相关联,2 个 jar(httpclient-4.2.5.jar 和 httpcore-4.2.4.jar)被添加到共享库中)

I would like to use httpclient-4.2.5 and tried using an isolated shared library as suggested in the previous post. (shared library was associated to the app, 2 jars (httpclient-4.2.5.jar and httpcore-4.2.4.jar) were added to the shared lib)

然而,它似乎仍在从 com.ibm.ws.prereq.jaxrs.jar 加载一些类

However, it seems to still be loading some classes from com.ibm.ws.prereq.jaxrs.jar

我在设置共享库时遗漏了一个步骤吗?

Is there a step I'm missing in setting up the shared lib?

推荐答案

您需要两个设置 - 隔离共享库和 PARENT_LAST 类加载器设置才能使用您自己的 httpclient 库.

You need both settings - isolated shared library and PARENT_LAST classloader setting to use your own httpclient libraries.

PARENT_LAST 需要覆盖服务器提供的类.

PARENT_LAST is required to override classes provided by the server.

这篇关于Websphere httpclient NoSuchMethodError org.apache.http.conn.Scheme的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆