Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 32686 invoked from network); 23 Aug 2006 19:52:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Aug 2006 19:52:53 -0000 Received: (qmail 30088 invoked by uid 500); 23 Aug 2006 19:52:37 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 29917 invoked by uid 500); 23 Aug 2006 19:52:37 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 29894 invoked by uid 99); 23 Aug 2006 19:52:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 12:52:36 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=DNS_FROM_RFC_ABUSE,X_PRIORITY_HIGH X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [200.122.131.32] (HELO CORREOGN.ln.corp.nacion.com) (200.122.131.32) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 12:52:32 -0700 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2663 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C6C6ED.9608C6EF" Subject: RE: Log4j and Tomcat problem Date: Wed, 23 Aug 2006 13:51:54 -0600 Message-ID: <7FBE762435F80C4297CAE22194F379631600EA59@CORREOGN.ln.corp.nacion.com> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: Log4j and Tomcat problem thread-index: AcbG6HGPHuF5dxKOThSiCFum43DNjQABOSuA X-Priority: 1 Priority: Urgent Importance: high From: =?iso-8859-1?Q?Lorenzo_Jim=E9nez?= To: "Tomcat Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C6C6ED.9608C6EF Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Also in order to work with log4j, you have to include this in the = WEB-INF/classes directory. Commons-loggin.properties Log4j.properties I include them as a sample. Regards, Lorenzo -----Original Message----- From: Lou Caudell [mailto:lcaudell@wtceng.com]=20 Sent: Wednesday, August 23, 2006 1:08 PM To: Tomcat Users List Subject: Re: Log4j and Tomcat problem pompiuses wrote: > I'm using Tomcat 5.0.30 running on Ubuntu Linux (6.06). > > I've made a small webapp which runs fine under Tomcat on Windows, but = on > Linux I've got a problem with log4j. > > I've put "commons-logging-1.1.jar" and "log4j-1.2.13.jar" in the = webapp libs > directory ($CATALINA_HOME/webapps/ROOT/WEB-INF/lib). In the webapp = classes > directory I've put log4j.properties. > > The problem is that the webapp won't even run as long as > "commons-logging-1.1.jar" is in the class path. If I remove it, the = webapp > will run but there's no logging. > > Then I tried putting log4j.properties in $CATALINA_HOME/shared/classes = and > $CATALINA_HOME/common/classes, but it still wouldn't log anything. > > No error messages is written to system.out = (/var/log/tomcat5/catalina.out) > or any of the Tomcat log files. > > My log4j.properties look like this (just prints to the console): > > # The log4j configuration file. > log4j.rootLogger=3Ddebug, R > log4j.appender.R=3Dorg.apache.log4j.ConsoleAppender > log4j.appender.R.layout=3Dorg.apache.log4j.PatternLayout > log4j.appender.R.layout.ConversionPattern=3D%-5p %-30.30c{1} %x - %m%n > > > How can I test if log4j.properties really is in the classpath? Perhaps = it's > missing from the classpath? > > Perhaps using the ROOT directory for my webapp is a bad idea? > > Any comments and suggestions are welcome :-) > > =20 Couple of things, 1) Try putting the log4j*.jar in tomcat*\commons\lib and see if it = works.. 2) You may be missing the jtds*.jar. - Lou Caudell --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org Si usted no es el destinatario indicado en este mensaje o responsable = como persona de la entrega del mensaje, no debe copiar o reenviar este = mensaje, por favor notifique al correo infosegura@nacion.com. Para = m=E1s referencia sobre t=E9rminos importantes relacionados a este correo = visite http://www.nacion.com/disclaimer/index_es2.htm If you are not the addressee indicated in this message (or responsible = for delivery of the message to such person), you may not copy or send = this message to anyone, please notify to infosegura@nacion.com. Click = on the following link for important additional terms relating to this = e-mail http://www.nacion.com/disclaimer/index_en2.htm ------_=_NextPart_001_01C6C6ED.9608C6EF Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org ------_=_NextPart_001_01C6C6ED.9608C6EF--