java.lang.NoClassDefFoundError 在使用 Couchbase 缓存的 websphere 中部署 War
java.lang.NoClassDefFoundError while deploying the War in websphere which uses Couchbase cache
我在 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
我正在使用 Couchbase-Client -1.1.9 和 http-core-4.1.3
http-core jar 捆绑在 war 文件 /web-inf/lib 文件夹中。
同时查看 websphere EnterprizeApplication-->application -->Manage Module --> moduleName--> ClassLoaderViewer - -> 加载视图
http-core-4.1.3 位于 table 中(jar 位于 class 路径中)。
(我也尝试使用 http-core 4.1.1 jar。)
应用程序仍然无法在给定的 jar 中找到 class。
我是 websphere 的新手,请帮我解决这个问题。
提前致谢。
http-core
类 已包含在 WebSphere 中。要使用不同的实现,请创建具有冲突库的隔离共享库并将其映射到应用程序。
我在 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
我正在使用 Couchbase-Client -1.1.9 和 http-core-4.1.3 http-core jar 捆绑在 war 文件 /web-inf/lib 文件夹中。
同时查看 websphere EnterprizeApplication-->application -->Manage Module --> moduleName--> ClassLoaderViewer - -> 加载视图 http-core-4.1.3 位于 table 中(jar 位于 class 路径中)。 (我也尝试使用 http-core 4.1.1 jar。)
应用程序仍然无法在给定的 jar 中找到 class。 我是 websphere 的新手,请帮我解决这个问题。
提前致谢。
http-core
类 已包含在 WebSphere 中。要使用不同的实现,请创建具有冲突库的隔离共享库并将其映射到应用程序。