Tuna Töre

> IOC Advocate, Coder

log4j:WARN No appenders could be found for logger


If you get the following warning in your application after adding log4j.jar inside your application. You should need to put log4j.xml and log4j.dtd in your application’s classpath. (putting these files inside a source folder will  be also worked, it should be in the classpath)

If you use  Netbeans IDE, it is better to create a source folder named log4j for the config files like the one on the following image

 

 

 

 

 

run:

log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
BUILD SUCCESSFUL (total time: 1 second)

About these ads

16/11/2011 - Posted by | Exceptions, log4j

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: