NoSuchMethodError org.apache.http.conn.scheme.Scheme [英] NoSuchMethodError org.apache.http.conn.scheme.Scheme
问题描述
java.lang.NoSuchMethodError: org/apache/http/conn/scheme/Scheme.(Ljava/lang/String; ILorg/apache/http/conn/scheme/SchemeSocketFactory;)V
java.lang.NoSuchMethodError: org/apache/http/conn/scheme/Scheme.(Ljava/lang/String;ILorg/apache/http/conn/scheme/SchemeSocketFactory;)V
我在运行WAS 8.5时遇到此错误.我的Web应用程序依赖于HTTP客户端4.1.1,但似乎我在WAS上加载了其他类.如何从8.5的应用类路径中排除http客户端库?
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?
推荐答案
尝试使用父最后一个"类加载,以便您使用自己的类而不是WAS中的类.
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.
这篇关于NoSuchMethodError org.apache.http.conn.scheme.Scheme的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!