在Eclipse中,配置log4j.xml出现“http //jakarta.apache.org/log4j/ uri is not registered”的错误信息。
原始的log4j.xml配置文件:
<?xml version="1.0" encoding="GB2312" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
解决方法,具体修改如下所示。
<?xml version="1.0" encoding="GB2312" ?> <!DOCTYPE log4j:configuration SYSTEM "http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd"> <log4j:configuration debug="true">
解决log4j.xml问题http//jakarta.apache.org/log4j/ uri is not registered
时间: 2024-10-24 18:32:04