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
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)
No comments yet.