当前位置: 动力学知识库 > 问答 > 编程问答 >

java - DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory when use XOM xml library

问题描述:

When Deploy the war application in the jboss wildfly getting the following error.

DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory

When I comment the XOM artifact in the pom I can deploy the war without any errors.

How can I fix the deployment error?

网友答案:

Try checking this answer. It will give you the details, but if you provide your own xerces.jar, you have to specify it doing: java -Djava.endorsed.dirs=/path/to/xerces.jar.

分享给朋友:
您可能感兴趣的文章:
随机阅读: