且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

java.lang.NoSuchMethodError:org/apache/http/conn/ssl/SSLSocketFactory

更新时间:2021-10-06 21:46:33

我猜您正在部署并尝试使用Apache HttpClient的一个版本,但是WebSphere的库中包含另一个版本.如果可以使用包含WebSphere的版本,那将是最简单的,但是如果需要使用特定的版本,则可以将WebSphere类加载器策略更改为PARENT_LAST.

I'd guess you're deploying and trying to use one version of Apache HttpClient, but that WebSphere has a different version included in its libraries. If you could use the WebSphere-included version, that would be simplest, but if you need to use the specific version, you could change the WebSphere classloader policy to PARENT_LAST.