简体   繁体   English

IBM WAS apache httpcore 和 httpclient

[英]IBM WAS apache httpcore and httpclient

I have IBM WAS 8.5.5.0 and I have to use java project with apache httpcore and httpclietn jar with 4.4.1 version.我有 IBM WAS 8.5.5.0,我必须使用带有 apache httpcore 和 httpclietn jar 的 java 项目 4.4.1 版本。 It works.它有效。 But when I try to deploy on my app server I face some problems.但是当我尝试在我的应用服务器上部署时,我遇到了一些问题。

java.lang.NoSuchFieldError: org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE java.lang.NoSuchFieldError: org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE

I've already get that this error occures when there are two version of one jar file.我已经知道当一个 jar 文件有两个版本时会发生此错误。 So I created a shared library with isolated class loader and parent_last.所以我创建了一个带有隔离类加载器和 parent_last 的共享库。 Reloaded and redeployed my app.重新加载并重新部署我的应用程序。 But I still have this error.但我仍然有这个错误。

Am I missing something?我错过了什么吗?

1) Should this 4.4.1 jars be added in build path in my project? 1) 这个 4.4.1 jars 应该添加到我项目的构建路径中吗?

2) When I create my shared library does it matter where should I put my jar files (fro class path)? 2)当我创建我的共享库时,我应该把我的 jar 文件放在哪里(来自类路径)有关系吗?

3) Should I put jars in libs/ext folder? 3) 我应该将 jars 放在 libs/ext 文件夹中吗? (I suppose not) (我想不是)

4) May version of WAS 8.5.5.0 be the problem? 4) 可能是 WAS 8.5.5.0 版本的问题吗?

In 8.5.5.9 and later you should be able to bundle them in your application without any additional configuration (such as adding them to an isolated shared library).在 8.5.5.9 及更高版本中,您应该能够将它们捆绑到您的应用程序中,而无需任何额外配置(例如将它们添加到隔离的共享库中)。

Prior to 8.5.5.9, simply adding them as a shared library (location doesn't matter) and associating them with your application should have been sufficient.在 8.5.5.9 之前,只需将它们添加为共享库(位置无关紧要)并将它们与您的应用程序相关联就足够了。 See APAR PI50993.请参阅 APAR PI50993。

From a practical perspective, there's little sense in worrying about how it works prior to 8.5.5.9 though, since 8.5.5.8 is nearly 18 months old and in 4 months won't be eligible for new fixes.从实用的角度来看,担心它在 8.5.5.9 之前的工作方式是没有意义的,因为 8.5.5.8 已经有将近 18 个月的历史了,而且在 4 个月后将没有资格进行新的修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 WAS 9 上使用 Apache HttpClient 和 IBM Jsse2 的 SSLHandshakeException - SSLHandshakeException using Apache HttpClient and IBM Jsse2 on WAS 9 Netbeans无法看到HttpClient和HttpCore jar文件 - HttpClient and HttpCore jar files not seen by Netbeans Android httpcore,httpmime和httpclient-android库导入givs错误 - Android httpcore, httpmime and httpclient-android libraries import givs an error HttpCore HttpClient版本冲突由以下原因引起:java.lang.NoSuchFieldError:INSTANCE - HttpCore HttpClient version conflict Caused by: java.lang.NoSuchFieldError: INSTANCE 如何配置apache httpcore 4以使用代理? - How do I configure apache httpcore 4 to use a proxy? Apache HttpCore,简单的服务器来回显收到的帖子数据 - Apache HttpCore, simple server to echo received post data 尝试通过另一个外部jar引用外部jar-通过httpclient的httpcore - Trying to reference an external jar through another external jar - httpcore through httpclient 从Apache HttpCore 4.4.3将ssl与org.apache.http.impl.bootstrap.HttpServer一起使用的示例 - Example of using ssl with org.apache.http.impl.bootstrap.HttpServer from Apache HttpCore 4.4.3 使用 TLS 的 Apache HTTPClient - Apache HTTPClient using TLS Apache异步HttpClient不快 - Apache async HttpClient not fast
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM