본문 바로가기

ErrorList

logj4.xml error

반응형

Multiple annotations found at this line:
- The file cannot be validated as the XML definition "/Users/untap/Develop/STS/Untap/SpringEnvironment_J/src/main/java/log4j.dtd (No such file or directory)" that is specified as describing the syntax of 
 the file cannot be located.
- Cannot find DTD 'file:///Users/untap/Develop/STS/Untap/SpringEnvironment_J/src/main/resources/log4j.dtd'. Create the DTD file or configure an XML catalog for this DTD.

  ==> 

이 줄에 여러 주석이 있습니다.
- 파일은 다음 구문을 설명하는 것으로 지정된 XML 정의 "/Users/untap/Develop/STS/Untap/SpringEnvironment_J/src/main/java/log4j.dtd(해당 파일 또는 디렉토리 없음)"으로 검증될 수 없습니다.
파일을 찾을 수 없습니다.
- DTD 'file:///Users/untap/Develop/STS/Untap/SpringEnvironment_J/src/main/resources/log4j.dtd'를 찾을 수 없습니다. DTD 파일을 생성하거나 이 DTD에 대한 XML 카탈로그를 구성합니다.

 

 

** 

아래 주소로 변경

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

<!DOCTYPE log4j:configuration SYSTEM "http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">

반응형