我正在尝试将 Guava 用于我的项目,并且在启动 JBoss 时有很多警告:
WARN [ClassLoaderManager] Unexpected error during load of:com.google.common.base.Equivalences$Equals: java.lang.IncompatibleClassChangeError: class com.google.common.base.Equivalences$Equals has interface com.google.common.base.Equivalence as super class
WARN [ClassLoaderManager] Unexpected error during load of:com.google.common.base.FunctionalEquivalence: java.lang.IncompatibleClassChangeError: class com.google.common.base.FunctionalEquivalence has interface com.google.common.base.Equivalence as super class
WARN [ClassLoaderManager] Unexpected error during load of:com.google.common.collect.AbstractMapBasedMultiset$1$1: java.lang.IllegalAccessError: class com.google.common.collect.AbstractMapBasedMultiset$1$1 cannot access its superclass com.google.common.collect.Multisets$AbstractEntry
[...]
根据我的研究,似乎与旧的 Google Collection 不兼容。community.jboss.org的这个帖子建议使用jboss-scanning.xml。我没有更改,JBoss 文档指定此文件用于过滤注释...
您是否已经遇到过这个问题?
你能提出一个解决方案吗?