Summary: | ERROR No appenders could be found for category (root) | ||
---|---|---|---|
Product: | Taglibs | Reporter: | Greg Hughlett <ghughlett> |
Component: | Log Taglib | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | CLOSED WONTFIX | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: | my log4j.properties file |
Description
Greg Hughlett
2001-08-14 07:14:15 UTC
Created attachment 421 [details]
my log4j.properties file
Wrong buglist. You probably want to try on the taglibs project. Sorry, but according to the Taglib team this is the place to enter Taglib bugs...Isn't that what "Product" above means ? I am reassigning bug to the owner of Taglibs. Regards, Ceki any idea as to when the Taglib team will be looking into my problem? AFAIK log4j should find the logj4.properties file in WEB-INF/classes. Maybe the JSP / taglib code doesn't have access to the WEB-INF/classes ClassLoader on Tomcat 3.2 / JRun 3.1. I've tried this with Tomcat 4.0 beta 6 and it appears to work fine. Maybe a workaround on Tomcat 3.2 and JRun 3.1 is to explicitly add a directory to your system CLASSPATH and put log4j.properties in that directory, so that log4j.properties can be found properly. Or an alternative could be to write a Servlet to initialize log4j on startup. The problem appears to be that taglib code using log4j doesn't seem to be able to see the log4j.properties file on the CLASSPATH - which sounds like a container problem. There is nothing the taglib can do to change how log4j looks for its log4j.properties file, nor can it work around class loader wierdness in containers - so I'm afraid a work around is required to initialise log4j. Maybe log4j could come with a standard Servlet that could be used to initialise log4j in circumstances such as these. |