The message means that the log4j.properties file was not found. Printing logging output to the console (or rather System.out) is the fallback if the logging is not otherwise initialized.
This indicates that if you look in your log4j properties file, the Logger is not assigned an appender, here is a sample log4j.properties that works, compare this with the one you have:
In an application that is deployed, you wont be having a WEB-INF/src folder. Instead you will be having a WEB-INF/classes folder. You can place the log4j.properties (or log4j.xml) in this WEB-INF/classes folder of your application.
is the name of LOg4j.properties file is stanfdard. i tryed with the file name changed by config.properties it is giving me following error. please let me know the standard of the file name, is the name must be log4j.properties ?. thanks in advance.
I just solved this issue by adding the appender. Seems like you already do have it. Try putting the log4j.prop in WEB-INF/classes dir or into WEB-INF itself.
Anita Kulkarni wrote:I just solved this issue by adding the appender. Seems like you already do have it. Try putting the log4j.prop in WEB-INF/classes dir or into WEB-INF itself.
Thanks, it's a good tip, but I don't run Tomcat here.
Jon
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me: