2013-01-21 56 views
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> 

但我仍然得到同樣的錯誤,任何想法?

回答

0

這意味着javax/xml/namespace/QName的兩個副本由兩個不同的類加載器加載。 This threadthis one有幾個有用的迴應,應該可以幫助你開始研究如何深入挖掘並希望能夠克服這個問題。