Websphere httpclient NoSuchMethodError org.apache.http.conn.Scheme

吃可爱长大的小学妹 提交于 2019-12-14 04:09:44

问题


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

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)

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?


回答1:


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

PARENT_LAST is required to override classes provided by the server.



来源:https://stackoverflow.com/questions/27710694/websphere-httpclient-nosuchmethoderror-org-apache-http-conn-scheme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!