我有spring4.3.10& Spring Secuity 4.2.3 Guava 12.0和JDK1.7。应用程序现在正常运行。 我必须升级Spring版本,因为Spring在这些版本中发布了错误:[https://nvd.nist.gov/vuln/detail/CVE-2018-1199][1] 所以,我正在将sping从4.3.10升级到4.3.16; Spring Security 4.2.3至4.2.4。 现在我收到此错误:import javax.annotation.concurrent.Immutable ;
java.lang.NoClassDefFoundError: com/gemstone/gemfire/internal/cache/BridgeObserverHolder
at com.gemstone.gemfire.internal.cache.tier.sockets.CacheClientUpdater.processMessages(CacheClientUpdater.java:1692)
at com.gemstone.gemfire.internal.cache.tier.sockets.CacheClientUpdater.run(CacheClientUpdater.java:459)
Caused by: java.lang.ClassNotFoundException: com.gemstone.gemfire.internal.cache.BridgeObserverHolder
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
... 2 more
java.lang.NoClassDefFoundError: com/gemstone/gemfire/internal/cache/BridgeObserverHolder
at com.gemstone.gemfire.internal.cache.tier.sockets.CacheClientUpdater.processMessages(CacheClientUpdater.java:1692)
at com.gemstone.gemfire.internal.cache.tier.sockets.CacheClientUpdater.run(CacheClientUpdater.java:459)
INFO : com.abc.cportal.delivery.publisher.adapters.SearchContentAdapter - Search sender shut down.
Exception in thread "SearchContentAdapter - background runner" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableAsList
at com.abc.cportal.delivery.search.LocalSearchCache.getRecords(LocalSearchCache.java:43)
at com.abc.cportal.delivery.publisher.adapters.SearchfeedUpdater.syncFeeds(SearchfeedUpdater.java:58)
at com.abc.cportal.delivery.publisher.adapters.SearchRecordScheduler.schedule(SearchRecordScheduler.java:59)
at com.abc.cportal.delivery.publisher.adapters.SearchContentAdapter.backgroundExecute(SearchContentAdapter.java:237)
at com.abc.cportal.delivery.publisher.adapters.SearchContentAdapter.access$000(SearchContentAdapter.java:42)
at com.abc.cportal.delivery.publisher.adapters.SearchContentAdapter$1.run(SearchContentAdapter.java:199)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableAsList
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
答案 0 :(得分:0)
错误消息具有误导性。因为 Spring 配置文件正在查找无法找到的 log4j 属性文件。当我添加 log4j 属性文件时, Spring 上下文可以将其注入声明的元素中,现在就可以了。 日Thnx。