Websphere httpclient NoSuchMethodError org.apache.http.conn.Scheme [英] Websphere httpclient NoSuchMethodError org.apache.http.conn.Scheme
问题描述
我看到的与此线程 NoSuchMethodError org中发布的问题相同. apache.http.conn.scheme.Scheme
我想使用httpclient-4.2.5,并尝试使用上一篇文章中建议的隔离共享库. (共享库与该应用程序相关联,已将2个jars(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屋!