This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j

 
Mohit Agarwal
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to use log4j (version log4j-1.2.8.jar ).The server is Tmcat 5.5.9
I made a Initializelog4j Servlet so as to initialize it on server start up.
The code for which is :


And the web.xml is (Snippet from it):



Now when i start Tomcat , i get the
ERROR:Cannot read the configuration file. Please check the path of the config init param in web.xml .


I don't know where i am wrong .

Please provide help regarding this ,

Thanks,
Mohit.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic