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

查看:190
本文介绍了java.lang.NoSuchMethodError:org/apache/http/conn/ssl/SSLSocketFactory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了我的应用程序并在WAS 8.5中重新启动,我在SystemOut.log中看到以下异常,在WAS 7中它可以正常工作.

I have installed my application and restarted in WAS 8.5, I see below exception in SystemOut.log,where as it works fine in WAS 7.

java.lang.NoSuchMethodError: org/apache/http/conn/ssl/SSLSocketFactory.<init>(Ljava/lang/String;Ljava/security/KeyStore;Ljava/lang/String;Ljava/security/KeyStore;Ljava/security/SecureRandom;Lorg/apache/http/conn/ssl/X509HostnameVerifier;)V

有人可以帮助我解决此问题吗?

Can any one help me how to resolve this issue?

推荐答案

我猜您正在部署并尝试使用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.

这篇关于java.lang.NoSuchMethodError:org/apache/http/conn/ssl/SSLSocketFactory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆