0

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?

4

1 回答 1

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.

于 2013-03-08T21:48:40.213 回答