gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 11:04:21 27 4
gpt4 key购买 nike

我在 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.3http-core jar 捆绑在 war 文件/web-inf/lib 文件夹中。

同时查看 websphere EnterprizApplication-->application -->Manage Module --> moduleName--> ClassLoaderViewer --> LoaderView http-core-4.1.3 在表中(类路径中存在 jar)。(我也尝试使用 http-core 4.1.1 jar。)

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

提前致谢。

最佳答案

http-core 类已经包含在 WebSphere 中。要使用不同的实现,请创建具有冲突库的隔离共享库并将其映射到应用程序。

关于在使用 Couchbase 缓存的 websphere 中部署 War 时出现 java.lang.NoClassDefFoundError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30070021/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com