RE: no appenders could be found for logger, but I think I have set the classpath!

2008-09-17 Thread Michael Erskine
Hi Ray, I suggest you read the Default Initialization Procedure section of the log4j manual at http://logging.apache.org/log4j/1.2/manual.html to get yourself acquainted with how log4j searches for your configuration. If all else fails you can use -Dlog4j.configuration=

AW: no appenders could be found for logger, but I think I have set the classpath!

2008-09-17 Thread Bender Heri
You should only define the path and not also the file: CLASSPATH=%CLASSPATH%;C:\eclipse\workspace\monitor\monitorClient\src\config Instead of CLASSPATH=%CLASSPATH%;C:\eclipse\workspace\monitor\monitorClient\src\config\log4j.xml -Ursprüngliche Nachricht- Von: raybristol

RE: no appenders could be found for logger, but I think I have set the classpath!

2008-09-17 Thread raybristol
Thanks very much for your reply! Michael Erskine wrote: Hi Ray, I suggest you read the Default Initialization Procedure section of the log4j manual at http://logging.apache.org/log4j/1.2/manual.html to get yourself acquainted with how log4j searches for your configuration. If all

Re: AW: no appenders could be found for logger, but I think I have set the classpath!

2008-09-17 Thread raybristol
You are right, thanks so so much! Bender Heri wrote: You should only define the path and not also the file: CLASSPATH=%CLASSPATH%;C:\eclipse\workspace\monitor\monitorClient\src\config Instead of CLASSPATH=%CLASSPATH%;C:\eclipse\workspace\monitor\monitorClient\src\config\log4j.xml

no appenders could be found for logger, but I think I have set the classpath!

2008-09-16 Thread raybristol
Hi experts, I got a very common problem: no appenders could be found for logger I was search the answer online, I can see this is caused by not setting the log4j.xml (or properties) file in classpaths, however I think I set it, if I do each %CLASSPATH%, then I can see log4j.xml is in there, I