Hello Leif, In order for Log4j to find the file, it must be in the classpath of the classloader. Files in WEB-INF are *not* in the classpath. However, files in WEB-INF/classes and WEB-INF/lib *are* in the WebappClassloader's classpath. Put your file in WEB-INF/classes and things should work.
Jake Wednesday, November 20, 2002, 8:43:53 AM, you wrote: LH> Hello, LH> i start playing with Log4j 1.2.7 and read that it automatically looks for LH> log4j.xml >>Log4j developers are happy to announce the release of log4j 1.2.7. As >>of this release log4j will search for the file log4j.xml as well as >>the file log4j.properties during its initialization. LH> I put my log4j.xml file inside my WEB-INF directory but log4j did not use LH> it. LH> I receive the message that log4j is not set up properly. LH> When adding a DOMConfigurator.configure(<path-to-file-log4j.xml>); LH> everything works fine! LH> What is necessary to let log4j automatically load log4j.xml? Do i need to LH> call LH> something at start up? Is the filelocation not supported? LH> Thanks in advance, Leif LH> -- LH> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> LH> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>