Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 45643 invoked from network); 2 May 2005 18:55:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 May 2005 18:55:13 -0000 Received: (qmail 97731 invoked by uid 500); 2 May 2005 18:55:13 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 97711 invoked by uid 500); 2 May 2005 18:55:13 -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 97675 invoked by uid 99); 2 May 2005 18:55:13 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of belwig@gmail.com designates 64.233.162.193 as permitted sender) Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.193) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 02 May 2005 11:55:12 -0700 Received: by zproxy.gmail.com with SMTP id 18so1857755nzp for ; Mon, 02 May 2005 11:53:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=aeY3K/OIItQBRe7nM3FEbfJTiXjxS8xax7D48lmZzl49phk3nHUOKds2RCOJZbWVCxQVS6/faDJB/vU0lRiRGxPuoomi06juvxDAzFqRKLMF95uZuxfeZOifQ4M3YfumFuApmn1/oWxpcdZkblO6Tc4Z92uTmurzs43v/U0jEHg= Received: by 10.36.84.10 with SMTP id h10mr579485nzb; Mon, 02 May 2005 11:53:38 -0700 (PDT) Received: by 10.36.115.17 with HTTP; Mon, 2 May 2005 11:53:38 -0700 (PDT) Message-ID: Date: Mon, 2 May 2005 14:53:38 -0400 From: John Hutchinson Reply-To: John Hutchinson To: tomcat-user@jakarta.apache.org Subject: Yet another tc5.5/log4j/jsvc question (sorry!) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, Recently I've ported our 5.0.28 server to 5.5.9 and JSVC. In the process I spent some time converting the server logging over to use log4j, which I've used on my webapps successfully for a while now. I've consulted the FAQ articles, which were very useful (except the last one: Need for it to be in bootstrap classpath. This link appears to be broken?). I've implemented the solution posted in 'Example with JSVC and running on port 80.' and am now sucessfuly logging tomcat server messages correctly to where I want them (catalina.log in $CATALINA_HOME/logs). The issue that I'm having now is that everything, including my webapps, now logs to this file, eschewing their own logging setups (including commons-loggin and log4j in WEB-INF/lib and log4j.xml in WEB-INF/classes). My best guess is the classloading situation as described at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html, that says in the eyes of my web app, classes are loaded in this order: Bootstrap classes of your JVM=20 System class loader classses (described above)=20 /WEB-INF/classes of your web application=20 /WEB-INF/lib/*.jar of your web application=20 $CATALINA_HOME/common/classes=20 $CATALINA_HOME/common/endorsed/*.jar=20 $CATALINA_HOME/common/i18n/*.jar=20 $CATALINA_HOME/common/lib/*.jar=20 $CATALINA_BASE/shared/classes=20 $CATALINA_BASE/shared/lib/*.jar=20 Since I've added log4j.xml (specifically, $CATALINA_HOME/common/classes where it resides, as described in the FAQ) to the bootstrap classpath, it's seeing the global log4j before it sees the app's. Do this sound right? If so, how do I get around this behavior so my wbapps will log using individual setups? Forgive me if this has been covered. I scanned as best I could for references in the archive. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org