본문 바로가기

FRAMEWORK

spring 과 Log4J 설치시 log4J.dtd 가 없다는 경고 메세지.

원문 :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

'FRAMEWORK' 카테고리의 다른 글

struts-config.xml 에 datasource 추가 ( strtus 1.3 미만 )  (0) 2011.07.18
struts2 - TagLibrary  (0) 2010.09.01
struts2 - 액션클래스 비교.  (0) 2010.08.27