在 Wildfly 服务器上部署 myfile.ear
后,我可以在服务器日志中看到此错误。
我正在使用 17.0
野蝇
Java 版本是 1.8
Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "org.apache.xerces.parsers.DOMParser.getDocument()Lorg/w3c/dom/Document;" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, xml/XMLDocument, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for the method's defining class, org/apache/xerces/parsers/DOMParser, have different Class objects for the type org/w3c/dom/Document used in the signature
at xml.XMLDocument.doParse(Unknown Source)
有人可以帮助我了解可能导致这种情况的原因吗?