why is Log4j trying to find log4j.dtd

前端 未结 6 571
时光取名叫无心
时光取名叫无心 2021-02-08 01:21

I\'m getting an exception when I try to run my application (in eclipse) complaining about log4j.dtd. Am I meant to have a dtd file if I use the xml configuration for log4j?

6条回答
  •  我在风中等你
    2021-02-08 02:00

    i had this problem with a jar application and ended up putting log4j.dtd in the directory hierarchy and the warn/error messages disappeared:

    org/apache/log4j/xml/log4j.dtd

    btw that is the location in the log4j.jar file

提交回复
热议问题