在使用Couchbase缓存的websphere中部署War时发生java.lang.NoClassDefFoundError

在使用Couchbase缓存的websphere中部署War时发生java.lang.NoClassDefFoundError,java,websphere,classpath,noclassdeffounderror,Java,Websphere,Classpath,Noclassdeffounderror,在Websphere-8.5.5中部署war文件时,我面临以下错误 Caused by: java.lang.NoClassDefFoundError: org/apache/http/params/SyncBasicHttpParams at com.couchbase.client.ViewConnection.createConnections(ViewConnection.java:120) at com.couchbase.client.ViewConn

在Websphere-8.5.5中部署war文件时,我面临以下错误

Caused by: java.lang.NoClassDefFoundError: org/apache/http/params/SyncBasicHttpParams
        at com.couchbase.client.ViewConnection.createConnections(ViewConnection.java:120)
        at com.couchbase.client.ViewConnection.<init>(ViewConnection.java:100)
        at com.couchbase.client.CouchbaseConnectionFactory.createViewConnection(CouchbaseConnectionFactory.java:184)
        at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:247)
        at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:179)
        at com.infosys.aham.services.utils.cache.CouchbaseCacheManager.instantiateCouchbaseManager(CouchbaseCacheManager.java:145)
        at com.infosys.aham.services.utils.cache.CouchbaseCacheManager.<init>(CouchbaseCacheManager.java:55)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:527)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
        ... 87 more
原因:java.lang.NoClassDefFoundError:org/apache/http/params/SyncBasicHttpParams
在com.couchbase.client.ViewConnection.createConnections(ViewConnection.java:120)上
位于com.couchbase.client.ViewConnection(ViewConnection.java:100)
位于com.couchbase.client.CouchbaseConnectionFactory.createViewConnection(CouchbaseConnectionFactory.java:184)
在com.couchbase.client.CouchbaseClient.(CouchbaseClient.java:247)
在com.couchbase.client.CouchbaseClient.(CouchbaseClient.java:179)
在com.infosys.aham.services.utils.cache.CouchbaseCacheManager.InstanceTouchBaseManager(CouchbaseCacheManager.java:145)上
位于com.infosys.aham.services.utils.cache.CouchbaseCacheManager.(CouchbaseCacheManager.java:55)
位于sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)
位于sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
位于java.lang.reflect.Constructor.newInstance(Constructor.java:527)
位于org.springframework.beans.BeanUtils.InstanceClass(BeanUtils.java:147)
... 87多
我正在使用Couchbase客户端-1.1.9和http-core-4.1.3 http核心jar捆绑在war文件/web inf/lib文件夹中

查看websphere EnterprizeApplication-->应用程序-->管理模块-->模块名称-->ClassLoaderViewer-->LoaderView时,也可以使用此选项 http-core-4.1.3在表中(jar在类路径中)。 (我还尝试了http core 4.1.1 jar。)

应用程序仍然无法找到给定jar中存在的类。 我是websphere新手,请帮我解决这个问题


提前感谢。

WebSphere中已经包含了
HTTPCore
类。要使用不同的实现,请创建具有冲突库的独立共享库,并将其映射到应用程序

我把文件夹命名为“web-inf”或“web-inf”?名称必须为大写。NoClassDefFound menas该类已在编译中使用,但在运行时未找到,因此在运行时不在classloader中。尝试将http核心jar放在websphere的lib文件夹中。它的大写字母为“WEB-INF”@Fran Montero-您能指定我在哪里可以找到lib文件夹(在websphere中)吗。jar也存在于WAR文件的lib文件夹中,即使如此,为什么websphere无法找到jar/类。http核心类已经包含在websphere中,要使用不同的实现,请尝试在web模块中设置Parent last,如果没有帮助,您需要创建具有冲突库的独立共享库,并将其映射到应用程序。