Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 60123 invoked from network); 10 Apr 2003 15:48:39 -0000 Received: from lml106.siteprotect.com (66.113.136.241) by daedalus.apache.org with SMTP; 10 Apr 2003 15:48:39 -0000 Received: from Kevin (www.integra-online.com [207.191.101.82] (may be forged)) by lml106.siteprotect.com (8.11.6/8.11.6) with ESMTP id h3AFmfS09050 for ; Thu, 10 Apr 2003 10:48:41 -0500 From: "Kevin Ross" To: "'Jakarta Commons Users List'" Subject: RE: [Logging] Where to put new jars in Tomcat? Date: Thu, 10 Apr 2003 10:48:55 -0600 Message-ID: <001a01c2ff81$147ac750$74caa8c0@ISS> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <001501c2ff6a$466ab610$b10aa8c0@aqureshi1> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This works: 1. Have a copy of log4j-1.2.8.jar in your WEB-INF/lib 2. Place your log4j.properties or log4j.xml in your WEB-INF/classes I have found that you *need* a copy of the log4j.jar in your local webapp classloader in order to isolate your logging configuration for your particular webapp. -Kevin Ross -----Original Message----- From: Affan Qureshi [mailto:quereshi@etilize.com] Sent: Thursday, April 10, 2003 8:06 AM To: Jakarta Commons Users List Subject: Re: [Logging] Where to put new jars in Tomcat? Thanks but I think it does find the log4j.properties coz it is printing the debug info right (according to the file in WEB-INF/classes/log4j.properties). Wouldn't placing jar files or properties file in App Server dirs tie up my app to the server. I would love to have my app as a freely distributable/deployable. Maybe I need to get rid of property files altogether and do configuration programmatically. But the problem is the Log4J implementation is hiding behind commons-logging API and common-logging does not have any configuration mechanism. Anyone tried programmatic configuration of log4j under commons-logging (via a web interface etc)? Thanks, Affan ----- Original Message ----- From: "Robert Priest" To: "'Jakarta Commons Users List'" Sent: Thursday, April 10, 2003 6:24 PM Subject: RE: [Logging] Where to put new jars in Tomcat? > It just sounds like it is not finding that log4j.properties file. If the new > commons-logging in your server\lib is using log4j, maybe you need a > log4j.properties file in server\classes. > > > > -----Original Message----- > From: Affan Qureshi [mailto:quereshi@etilize.com] > Sent: Thursday, April 10, 2003 4:08 AM > To: Jakarta Commons Users List > Subject: [Logging] Where to put new jars in Tomcat? > > > Hi, > I have downloaded commons-logging-1.0.3 and found two jar files in it: > commons-logging.jar > commons-logging-api.jar > > Now which one am i supposed to put in my webapp/WEB-INF/lib and what about > tomcat's server/lib and common/lib? I found that tomcat's server/lib already > had commons-logging.jar and I replaced it with the new one having the same > name. Also replaced the existing common/lib/commons-logging-api.jar with the > new commons-logging-api.jar. But when tomcat starts up i get: > log4j:WARN No appenders could be found for logger > (org.apache.commons.digester.D > igester). > log4j:WARN Please initialize the log4j system properly. > and > Do I have to put log4j in tomcat too? I have log4j.jar in my WEB-INF/lib. I > also have log4j.properties and commons-logging.properties and > WEB-INF/classes. > > Right now I am not getting any log messages anywhere. > > Any where i can find exact steps to make this work? i have searched the > archive and tried some of the combinations nothing seems to fit in. > > I am using Tomcat 4.1.18 on Win2000 and JDK1.4. > > Affan > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org