원문 :https://issuetracker.springsource.com/browse/STS-2740


The log4j.xml files in the project generated by Spring MVC Template Project in the Dashboard produce warnings in STS 3.0.0.M2.

WARNING:
The file cannot be validated as the XML definition "some_path\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.

It is caused by the DOCTYPE line, and a remedy is suggested below.

CURRENT: <!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">

NEW: <!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">

TARGET FILES:
src/main/resources/log4j.xml
src/test/resources/log4j.xml

+ Recent posts