热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

问题http://apache.org/xml/features/xinclude测试log4j2

如何解决《问题http://apache.org/xml/features/xinclude测试log4j2》经验,为你挑选了1个好方法。

我正在测试Log4j2,我不知道我做错了什么,因为我从Apache下载了库并将它们放在了类路径中.我也添加了xercesImpl,xalan,xml-apis,serializer,xsltc,但异常仍然存在.我显示堆栈跟踪和配置文件:



    
        C:/Logs/
    
    
        
            
                %d{dd/MMM/yyyy HH:mm:ss,SSS}- %c{1}: %m%n
            
            
                
            
            
        
    
    
        
            
        
        
            
        
    



ERROR StatusLogger Error parsing C:\W7des\cliente\Test\bin\log4j2.xml javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized.
    at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
    at org.apache.logging.log4j.core.config.xml.XmlConfiguration.newDocumentBuilder(XmlConfiguration.java:85)
    at org.apache.logging.log4j.core.config.xml.XmlConfiguration.(XmlConfiguration.java:137)
    at org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:44)
    at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:472)
    at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:442)
    at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:254)
    at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:419)
    at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:138)
    at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:207)
    at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:41)
    at org.apache.logging.log4j.LogManager.getContext(LogManager.java:160)
    at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:492)
    at pac.Main.(Main.java:14)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)

提前致谢.



1> Thomas Welle..:

在我的例子中,xercesImpl-2.6.2.jar从类路径中删除过时的帮助.


确认 - 也为我工作,用xercesImpl版本**2.11.0**替换了相关的依赖项,错误消失了.谢谢!
推荐阅读
author-avatar
13486099491_fb9570
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有