gpt4 book ai didi

Java - Jboss 中的 javax.faces.el.E​​valuationException : java. lang.LinkageError

转载 作者:行者123 更新时间:2023-12-01 04:13:24 28 4
gpt4 key购买 nike

浏览 JSF 应用程序页面时遇到 Java 链接错误。该应用程序已部署在Jboss-eap -5.1

错误跟踪:

2013-10-30 14:16:54,559 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (http-localhost%2F127.0.0.1-8080-4)
java.lang.LinkageError: loader constraint violation:
when resolving field "NODESET" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the referring class, javax/xml/xpath/XPathConstants,
and the class loader (instance of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different Class objects for that type
javax.faces.el.EvaluationException: java.lang.LinkageError: loader constraint violation: when resolving field "NODESET" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the referring class, javax/xml/xpath/XPathConstants, and the class loader (instance of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different Class objects for that type
at com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

您能否建议我可能的原因是什么,或者如果有人遇到类似的问题,如何解决?提前致谢,读数,RK

最佳答案

rt.jar 已包含 QName 类,因此需要从 jaxrpc.jar 中删除 QName 类或具有相同包的 QName 类的任何其他 jar,即 javax.xml.namespace(提取 jar,删除 QName 类(从 javax.xml.namespace)并重新 jar它)。

关于Java - Jboss 中的 javax.faces.el.E​​valuationException : java. lang.LinkageError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19678544/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com