Thanks Lukasz for the link about log4j2 and Martin for log4j.xml in Eclipse. I have the log4j.xml in /src/main/resource and the warning is about the validation of the XML. Eclipse can't locate log4j.dtd and is looking for it in /src/main/java.
It is only a warning, i can see the log message in the console. 2016-03-21 22:44 GMT+00:00 Martin Gainty <mgai...@hotmail.com>: > Eclipse cleans classes folder so perhaps put a copy of log4j.xml into \src > ? > For maven put a copy of log4j.xml into \src\main\resources > http://stackoverflow.com/questions/9554805/log4j-xml-in-eclipse > Saludos/ > Martín > ______________________________________________ > > > > > From: jadt...@gmail.com > > Subject: Re: Log4j dtd > > Date: Mon, 21 Mar 2016 22:21:28 +0000 > > To: user@struts.apache.org > > > > Well there are some difference between the online documentation tutorial > basic-struts and the github examples. > > > > In the documentation > > log4j.xml > > and in the pom the dependency log4j as artifactId. > > > > In the github > > lo4j2.xml > > and in the pom the dependency log4j-core like artifactId > > > > i used the first, i find log4j.jar in my local repository but i still > see the Eclipse warning in the xml file > > (file cannot be validated as the XML definition) Eclipse look up in the > workspace for log4j.dtd > > > > Why Eclipse doesn't find did file in the log4j.jar? > > Is there an important difference between log4j and log4j2? > > > > > > > > > On 21 Mar 2016, at 19:44, Lukasz Lenart <lukaszlen...@apache.org> > wrote: > > > > > > 2016-03-21 19:00 GMT+01:00 José Antonio Delgado Trujillo < > jadt...@gmail.com>: > > >> Hi, > > >> > > >> i'm doing the getting started struts2 tutorial and i have a warning > message with log4j.xml file. > > >> > > >> In the tutorial the second line in log4j.xml is > > >> > > >> <!DOCTYPE log4j:configuration PUBLIC "-//log4j/log4j > Configuration//EN" "log4j.dtd"> > > >> > > >> but eclipse can't located log4j.dtd in my workspace. > > >> > > >> How can i fix the problem? > > >> isn't there a external place to locate log4j.dtd? > > > > > > It should be inside a jar with Log4j and why Log4j and not Log4j2? > > > > > > > > > Regards > > > -- > > > Łukasz > > > + 48 606 323 122 http://www.lenart.org.pl/ > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > -- Un saludo, José A.