0

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>

しかし、私はまだ同じエラーが発生しています。何かアイデアはありますか?

4

1 に答える 1

0

これは、 の 2 つのコピーがjavax/xml/namespace/QName2 つの異なるクラスローダーによってロードされていることを意味します。このスレッドこのスレッドには、より深く掘り下げ、できればこの問題を乗り越える方法を理解するのに役立つ役立つ回答がいくつかあります。

于 2013-01-27T00:50:51.027 に答える