wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Log4j warning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Log4j warning" Watch "Log4j warning" New topic

Log4j warning

Ramesh Etta
Ranch Hand

Joined: Sep 18, 2007
Posts: 46

I have configured Log4j for my application and when i start the tomcat server i am able to see some log4j warnings like this:

log4j: WARN: No appenders could be found for logger (org.apache.commons.beanutils.Convertutils ).
log4j: WARN: Please initialize the log4j system properly.

Could anyone have idea about this problem.

I dont want this messages to be comming.

Is there any changes to be made. please help me.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074

That means that Log4J is not picking up its configuration file. How did you name the file and where did you put it?

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

Or it could mean that your log4j configuration file does not specify an appender for that class. (As the message specifically says.)

If you don't want to see that message then (a) make sure your configuration file is in the correct place, and (b) make sure it specifies an appender for that class.
I agree. Here's the link: http://aspose.com/file-tools
subject: Log4j warning
Similar Threads
log4j levels
About log4 in eclipse/jbpm
Help! I am getting strange and unusual Eclipse Warnings
log4j error
Log4j: Warn no appenders could be found for logger (com.mcreations.usb.windows.JavaxUsb)