我正在尝试在 JBoss 6 上部署 WAR 应用程序。我收到 LinkageError:
java.lang.LinkageError: loader constraint violation:
when resolving interface method "javax.xml.stream.XMLStreamReader.getName()Ljavax/xml/namespace/QName;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/codehaus/xfire/soap/handler/ReadHeadersHandler,
and the class loader (instance of <bootloader>) for resolved class, javax/xml/stream/XMLStreamReader, have different Class objects for the type javax/xml/namespace/QName used in the signature
所以我正在尝试设置一个类加载器存储库 WEB-INF/jboss-web.xml 文件:
<class-loading>
<loader-repository java2ClassLoadingCompliance="false">
com.example:archive=unique-archive-name
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
但我仍然遇到同样的错误,有什么想法吗?