0
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" >
    <log4j:configuration>

In the second line of above code, i am getting the following warning :(

The file cannot be validated as the XML definition "<>\src\main\java\log4j.dtd (The system cannot find the file specified)" that is specified as describing the syntax of the file cannot be located

Someone please suggest the solution.

Thanks in advance

programmer
  • 96
  • 1
  • 2
  • 11
  • Possible duplicate of [why is Log4j trying to find log4j.dtd](http://stackoverflow.com/questions/4968934/why-is-log4j-trying-to-find-log4j-dtd) – Arnaud Dec 30 '15 at 09:23

1 Answers1

0

You don't have the file log4j.dtd in your source.

Just donwload the file from here and put in src\main\java\ of your project

Gianni B.
  • 2,691
  • 18
  • 31