NoSuchMethodError org.apache.http.conn.scheme.Scheme

痞子三分冷 提交于 2019-12-25 02:55:48

问题


java.lang.NoSuchMethodError: org/apache/http/conn/scheme/Scheme.(Ljava/lang/String;ILorg/apache/http/conn/scheme/SchemeSocketFactory;)V

I'm getting this error running WAS 8.5. My web app depends on http client 4.1.1 but it seems i'm getting a different class loaded on WAS. How can I exclude the http client library from my apps class path on was 8.5?


回答1:


Try using "parent last" classloading so that you use your own classes instead of the ones from WAS.

Change it for the application and depending on your configuration for the application on the webmodule as well.



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

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