File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j" Watch "Log4j" New topic


Mohit Agarwal
Ranch Hand

Joined: Mar 30, 2004
Posts: 88

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 ,

I agree. Here's the link:
subject: Log4j
It's not a secret anymore!