java.lang.LinkageError:违反加载程序约束 [英] java.lang.LinkageError: loader constraint violation

查看:185
本文介绍了java.lang.LinkageError:违反加载程序约束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我遇到了类似链接错误的问题:

i have faced with such an issue as linkage error like this:

java.lang.LinkageError: loader constraint violation: when resolving method "javax.xml.transform.Transformer.transform(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V" the class loader (instance of org/jboss/mx/loading/UnifiedClassLoader3) of the current class, org/richfaces/renderkit/TemplateEncoderRendererBase, and the class loader (instance of <bootloader>) for resolved class, javax/xml/transform/Transformer, have different Class objects for the type javax/xml/transform/Source used in the signature



<中使用的javax / xml / transform / Source类型具有不同的Class对象我已经搜索了很多,但是我发现的建议是从类路径中排除诸如xml-apis-2.9.1.jar或jaxrpc-1.1.jar之类的库。我做到了,但是我仍然有同样的错误。
这个库实际上包含在jdk 1.6(rt.jar)中。

I have googled a lot, but all i found is the suggestion to exclude from classpath such kind of libs as xml-apis-2.9.1.jar or jaxrpc-1.1.jar. I did that, but i still have the same error. This library is actually included into jdk 1.6 (rt.jar).

因此,我确实检查了所有包含的jar,似乎没有那种jar可能使用目标类...

So, i did check all my included jars and it seems no kind of jars that might use target class...

也许我不考虑水电费吗?有什么魔术吗?

Maybe i don't take in account smth? is there some magic trick??

谢谢您的帮助。

推荐答案

问题已解决。奇怪的是jaxrpc-1.1.jar保留在appi.war\WEB-INF\lib中,这很奇怪,因为我从类路径中排除了它并重新部署了所有东西。

The issue is fixed. the strange thing was that jaxrpc-1.1.jar remained in appi.war\WEB-INF\lib, which is very weird as i exclude it from classpath and redeploy everything.

这篇关于java.lang.LinkageError:违反加载程序约束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆