简体   繁体   English

IBM jre javax.xml.parsers.FactoryConfigurationError

[英]IBM jre javax.xml.parsers.FactoryConfigurationError

I'm trying use log4j with IBM JRE, 我正在尝试将log4j与IBM JRE一起使用,

While configuring DOMConfigurator with log4j file like the following, 使用如下所示的log4j文件配置DOMConfigurator时,

DOMConfigurator.configure(log4jfileAbsPath);

I get the following error. 我收到以下错误。 With Sun jre it is working fine. 使用Sun jre可以正常工作。

javax.xml.parsers.FactoryConfigurationError: Provider com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl not found
    at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:694)
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:604)
    at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:733)

It should be in rt.jar, but it seems that IBM doesn't have it there. 它应该在rt.jar中,但是IBM似乎没有它。 You have to find xercesImpl- version .jar and put it in a classpath. 您必须找到xercesImpl- 版本 .jar并将其放在类路径中。 You should discover which version is right for you. 您应该发现哪个版本适合您。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 org.xml.sax.SAXException: javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.SAXParserFactory cannot be created - org.xml.sax.SAXException: javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.SAXParserFactory cannot be created 如何在每秒钟服务器启动时修复“javax.xml.parsers.FactoryConfigurationError” - How to fix 'javax.xml.parsers.FactoryConfigurationError on every second server startup' 使用Java 7更新171运行JBoss AS 7.1的javax.xml.parsers.FactoryConfigurationError - javax.xml.parsers.FactoryConfigurationError running JBoss AS 7.1 with Java 7 update 171 javax.xml.parsers.FactoryConfigurationError:找不到提供程序org.apache.xerces.jaxp.DocumentBuilderFactoryImpl - javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found Android上带有javax.xml.parsers的ParserConfigurationException - ParserConfigurationException with javax.xml.parsers on Android javax.xml.parsers.SAXParserFactory ClassCastException - javax.xml.parsers.SAXParserFactory ClassCastException XOM 与 javax.xml.parsers - XOM v/s javax.xml.parsers javax.xml.parsers.DocumentBuilder对复杂类型的支持 - javax.xml.parsers.DocumentBuilder support for complex types 找不到javax.xml.parsers.DocumentBuilderFactory的提供程序 - Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found StatusLogger 捕获 javax.xml.parsers.ParserConfigurationException 设置功能 - StatusLogger Caught javax.xml.parsers.ParserConfigurationException setting feature
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM