Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j - Tomcat No appenders error

 
Sham Jowsaki
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have servlet and integrating with Log4j. These are all under .war file and it is extracting properly. When am invoking the servlet the following error is coming..
pls help me out how to solve this problems.
log4j:WARN No appenders could be found for logger (qimcmdprocessor).
log4j:WARN Please initialize the log4j system properly.
Thanks a lot
Jowsaki
 
Paul Stanton
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the quickest fix would be to insert the following line BEFORE any logging statements are executed:
org.apache.log4j.BasicConfigurator.configure();
You should spend a little more time configuring your appenders/loggers, preferably in a config file, but this is the easiest way to get rid of the errors. enjoy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic