Return-Path: Delivered-To: apmail-jakarta-log4j-dev-archive@apache.org Received: (qmail 49503 invoked from network); 7 Jul 2003 10:45:45 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 7 Jul 2003 10:45:45 -0000 Received: (qmail 596 invoked by uid 97); 7 Jul 2003 10:48:10 -0000 Delivered-To: qmlist-jakarta-archive-log4j-dev@nagoya.betaversion.org Received: (qmail 589 invoked from network); 7 Jul 2003 10:48:10 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 7 Jul 2003 10:48:10 -0000 Received: (qmail 48666 invoked by uid 500); 7 Jul 2003 10:45:35 -0000 Mailing-List: contact log4j-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@jakarta.apache.org Received: (qmail 48607 invoked from network); 7 Jul 2003 10:45:34 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 7 Jul 2003 10:45:34 -0000 Received: (qmail 583 invoked by uid 50); 7 Jul 2003 10:47:59 -0000 Date: 7 Jul 2003 10:47:59 -0000 Message-ID: <20030707104759.582.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: log4j-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 21367] New: - log4j:ERROR Ignoring configuration file [nulllog4j.properties]. X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21367 log4j:ERROR Ignoring configuration file [nulllog4j.properties]. Summary: log4j:ERROR Ignoring configuration file [nulllog4j.properties]. Product: Log4j Version: 1.0 Platform: Other URL: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4091 OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Configurator AssignedTo: log4j-dev@jakarta.apache.org ReportedBy: hauser@acm.org CC: stefan.berger@softborg.com First, we thought as per the above URL that this is a tomcat problem. <(FileInputStream.java:103) at java.io.FileInputStream.(FileInputStream.java:66) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:300) at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:318) at com.privasphere.privalope.util.Log4JServlet.init(Log4JServlet.java:34) at javax.servlet.GenericServlet.init(GenericServlet.java:256)>> But now we realize that log4j.properties is present in the .war file at the very same location as all the jsp files. How can we find out a) where log4j looks for b) what file? The error log as per the above URL neither mentions "log4j.properties" nor the path it is searching for. In source/com/privasphere/privalope/util/Log4JServlet.java, we do <<... import org.apache.log4j.PropertyConfigurator; public class Log4JServlet extends HttpServlet { public void init() throws ServletException { // Get Fully Qualified Path to Properties File String path = getServletContext().getRealPath("/"); String propfile = path + getInitParameter("propfile"); // Initialize Properties for All Servlets PropertyConfigurator.configure(propfile); //Line 34 ...>> << log4j com.privasphere.privalope.util.Log4JServlet propfile log4j.properties 1 >> --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-dev-help@jakarta.apache.org