0
我試圖部署在JBoss 6.一個WAR應用程序我得到的LinkageError類:JBoss的類加載器6發行
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>
但我仍然得到同樣的錯誤,任何想法?