Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 83576 invoked from network); 13 May 2003 13:59:35 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 13 May 2003 13:59:35 -0000 Received: (qmail 9136 invoked by uid 97); 13 May 2003 14:01:40 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 9129 invoked from network); 13 May 2003 14:01:40 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 13 May 2003 14:01:40 -0000 Received: (qmail 75452 invoked by uid 500); 13 May 2003 13:57:12 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 75392 invoked from network); 13 May 2003 13:57:11 -0000 Received: from unknown (HELO mustang.mpi.com) (63.244.250.132) by daedalus.apache.org with SMTP; 13 May 2003 13:57:11 -0000 Received: from thunderbolt.mpi.com (thunderbolt.mpi.com [199.93.192.55]) by mustang.mpi.com (Switch-2.2.6/Switch-2.2.6) with ESMTP id h4DDv8o00228 for ; Tue, 13 May 2003 09:57:08 -0400 (EDT) Received: from US-VS1.corp.mpi.com (us-be1.corp.mpi.com [199.93.195.20]) by thunderbolt.mpi.com (Switch-3.0.4/Switch-3.0.0) with ESMTP id h4DDuXO8002386 for ; Tue, 13 May 2003 09:57:07 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: log4j problem Date: Tue, 13 May 2003 09:57:04 -0400 Message-ID: <9C5166762F311146951505C6790A9CF858EA3A@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: log4j problem thread-index: AcMZVGMOVfWMq5KlSu6iilh/fzAsDgAAwoJA From: "Shapira, Yoav" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Howdy, >I use the following line in a servlet that is loaded on startup. > >// Configure log4j >DOMConfigurator.configureAndWatch(getServletContext().getRealPath("/"= ) + >"log4j.xml", 10000); > >I use an XML configuration file for log4j but the command of interest= here >is the getServletContext() And the getRealPath("/") which would return null if deployed in a war file ;) Consider getResource("/log4j.xml") instead. Yoav Shapira This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org