Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 64769 invoked from network); 24 Apr 2009 15:06:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Apr 2009 15:06:46 -0000 Received: (qmail 97393 invoked by uid 500); 24 Apr 2009 15:06:45 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 97287 invoked by uid 500); 24 Apr 2009 15:06:45 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 97277 invoked by uid 99); 24 Apr 2009 15:06:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Apr 2009 15:06:45 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [193.252.22.159] (HELO smtp5.freeserve.com) (193.252.22.159) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Apr 2009 15:06:36 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3428.me.freeserve.com (SMTP Server) with ESMTP id B1DEC1C00086 for ; Fri, 24 Apr 2009 17:06:15 +0200 (CEST) Received: from smtp.homeinbox.net (unknown [91.109.133.116]) by mwinf3428.me.freeserve.com (SMTP Server) with ESMTP id 5AA201C00084 for ; Fri, 24 Apr 2009 17:06:15 +0200 (CEST) X-ME-UUID: 20090424150615371.5AA201C00084@mwinf3428.me.freeserve.com Received: from localhost (localhost [127.0.0.1]) by smtp.homeinbox.net (Postfix) with ESMTP id 94D7F1A4BB6 for ; Fri, 24 Apr 2009 16:06:23 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from smtp.homeinbox.net ([127.0.0.1]) by localhost (server01.dev.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dmt+jgWd6lp2 for ; Fri, 24 Apr 2009 16:06:20 +0100 (BST) Received: from [192.168.0.9] (study03.dev.local [192.168.0.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.homeinbox.net (Postfix) with ESMTPSA id 1F0AA1A4B75 for ; Fri, 24 Apr 2009 16:06:20 +0100 (BST) Message-ID: <49F1D55B.4030006@apache.org> Date: Fri, 24 Apr 2009 16:06:03 +0100 From: Mark Thomas User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Commons Developers List Subject: Re: Fwd: commons-logging unsuited for cross-context webapplication invocation usage - migrating to slf4j? References: <49ECDF6E.70502@doit.wisc.edu> <4A30EC8B-ABA6-4DC0-A766-6EB31A33B24A@dslextreme.com> <49F1033D.40704@douma.nu> <49F17679.2060506@apache.org> <49F17E0E.7050200@douma.nu> <49F188DC.8090006@apache.org> <49F18C56.8060600@qos.ch> In-Reply-To: <49F18C56.8060600@qos.ch> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ceki Gulcu wrote: > > > Mark Thomas wrote: >> >> Two web applications both using slf4j with java.util.logging and both >> using a third party library that has a logger called "MyLogger". >> >> When web app one uses the library, slf4j will return - via a call to >> j.u.l.getLogger() - a new logger called MyLogger. When web app two uses >> the library it will get the same logger instance as web app one. This >> type of behaviour is often at the root of permgen memory leaks. > > Where is the 3rd party library located on the class path? Is the 3rd > party library loaded by a shared/common class loader, parent of the > web-app class loaders? Sorry if I wasn't clear. I intended that the slf4j jars and the third party jars were all in WEB-INF/lib My concern in this scenario is more that this j.u.l, as part of the JRE, will be loaded by the System class loader and hence loggers are registered JVM wide rather than per webapp. Does slf4j provide a way around this issue? Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org