File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Log4j

Mohit Agarwal
Ranch Hand

Joined: Mar 30, 2004
Posts: 88
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Log4j
 
Similar Threads
Log redirection
log4j...
Tomcat Startup and Shutdown
Problem Migrating a Project from Weblogic 9.2 to Tomcat 6.0.29
using log4j in servlets