Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 71989 invoked from network); 3 Mar 2005 17:32:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Mar 2005 17:32:27 -0000 Received: (qmail 77054 invoked by uid 500); 3 Mar 2005 17:32:12 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 76761 invoked by uid 500); 3 Mar 2005 17:32:11 -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 76742 invoked by uid 99); 3 Mar 2005 17:32:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from smtp-in1.med.cornell.edu (HELO smtp-in1.med.cornell.edu) (140.251.1.25) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Mar 2005 09:32:10 -0800 Received: from mpx3.med.cornell.edu (biglb-vlan511vip.med.cornell.edu [140.251.11.120]) by smtp-in1.med.cornell.edu (Switch-3.1.6/Switch-3.1.6) with ESMTP id j23HW5Ja116698 for ; Thu, 3 Mar 2005 12:32:05 -0500 Received: from [140.251.33.115] by mpx3.med.cornell.edu (Sun Java System Messaging Server 6.1 HotFix 0.11 (built Jan 28 2005)) with ESMTP id <0ICS00CMXE1H6W60@mpx3.med.cornell.edu> for tomcat-user@jakarta.apache.org; Thu, 03 Mar 2005 12:32:05 -0500 (EST) Date: Thu, 03 Mar 2005 12:32:04 -0500 From: Adrian Robert Subject: Re: How to approximate tomcat-5.0/4.x/3.x logging in 5.5? In-reply-to: <784918fcc860b026c0c2762d441e5ac3@cogsci.ucsd.edu> To: Adrian Robert Cc: Tomcat Users List Message-id: <2f82c6fecb8e20563976cd33a24ab84e@cogsci.ucsd.edu> MIME-version: 1.0 (Apple Message framework v619.2) X-Mailer: Apple Mail (2.619.2) Content-type: text/plain; charset=US-ASCII; format=flowed Content-transfer-encoding: 7bit References: <5.2.1.1.0.20050301205552.03d14ac8@pop.shell.visi.com> <3d29d422488457740cfb383ea47fa4c7@cogsci.ucsd.edu> <1109783396.4225f36435baf@my.visi.com> <1109866915.422739a34a7ab@my.visi.com> <784918fcc860b026c0c2762d441e5ac3@cogsci.ucsd.edu> X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.0.3.0, Antispam-Data: 2005.3.3.9 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N >>> OK, thanks to your vote of confidence in the method, I dug further >>> and >>> discovered that my WEB-INF/classes/log4j.properties was never being >>> found. If I put the log4j.properties into the same jar (in >>> WEB-INF/lib) with the class that was instantiating the Logger, it >>> worked correctly. >>> >> >> That's extremely odd. What version of Tomcat are you running? >> That's a bug >> because WEB-INF/classes should be put in the classpath before jars in >> WEB-INF/lib. > > This is 5.5.7, with the 1.4 compatibility package on MacOS. I've > experienced similar issues before with different tomcat versions, > though I had forgotten that in this case.. > > Note I do NOT unpack the app from a war, just copy the full hierarchy > straight under webapps. Also, the WEB-INF/classes/log4j.properties > file was a symblic link. Maybe one of these makes a difference? It turns out it WAS the symbolic link. I get the following results: - symbolic link, relative (e.g., WEB-INF/classes/log4j.properties -> resources/log4j.properties): not found - symbolic link, absolute (e.g., WEB-INF/classes/log4j.properties -> /usr/java/tomcat/webapps/foo/WEB-INF/classes/resources/log4j.properties - OR - regular file: found and prevents common/classes/log4j.properties from being found (tomcat-general stuff goes into webapp's log file) - file in jar with class that instantiates Logger: both tomcat's (common/classes/) and webapp's log4j.properties are found and heeded Sorry about the bother if this is just standard knowledge of how tomcat operates on Unix. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org