12.08.2012

The file cannot be validated as the XML definition "log4j.dtd


I have this error in eclipse... on this line:

<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

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


Fix:
Change the above line for:

<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">

From:
http://stackoverflow.com/questions/5000884/eclipse-referencing-log4j-dtd-in-log4j-xml

No hay comentarios.:

Publicar un comentario