I\'ve been using log4j for quite a while now and I usually use this at the top of the log4j.xml (probably just like many others and according to Google this is the
Usually, Eclipse looks for log4j.dtd in classpath and it doesn’t find it there and hence the error. We can resolve this issue by providing URL for log4j.dtd file like below.