why is Log4j trying to find log4j.dtd

前端 未结 6 573
时光取名叫无心
时光取名叫无心 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 01:47

    For people coming on that, as of now, log4j.dtd is included in log4j.jar (in version 1.2.14 at least).

    As log4j.dtd is looked for in your classpath (see this other question) you shouldn't need it anymore.

提交回复
热议问题