Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 39690 invoked from network); 5 Aug 2004 17:23:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Aug 2004 17:23:20 -0000 Received: (qmail 79475 invoked by uid 500); 5 Aug 2004 17:23:17 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 79302 invoked by uid 500); 5 Aug 2004 17:23:15 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 79289 invoked by uid 99); 5 Aug 2004 17:23:15 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [63.244.250.132] (HELO mustang.mpi.com) (63.244.250.132) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 05 Aug 2004 10:23:15 -0700 Received: from lightning.mpi.com (lightning [63.244.252.11]) by mustang.mpi.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id i75HJ8X5027068 for ; Thu, 5 Aug 2004 13:19:08 -0400 (EDT) Received: from US-VS1.corp.mpi.com (us-be2.corp.mpi.com [63.244.252.32]) by lightning.mpi.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i75HMbdl018192 for ; Thu, 5 Aug 2004 13:23:08 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: log4j SEVERE ThreadDeath in Tomcat 5.0.25 Date: Thu, 5 Aug 2004 13:23:04 -0400 Message-ID: <9C5166762F311146951505C6790A9CF801FC38E2@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: log4j SEVERE ThreadDeath in Tomcat 5.0.25 Thread-Index: AcR7D2BaA9hveMHnQGmE5I5c47pSNgAAM74A From: "Shapira, Yoav" To: "Jakarta Commons Developers List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hola, >i'm not sure i understand what ceki's point is. i can't see that he >gives any reason for pointing the finger in the way he does. maybe if= >ceki explained how using classloaders as keys effects log4j, i'd see = a >bit better... The issue is: - Web application deployed on Tomcat uses log4j via commons-logging - When said application is restarted (using one of the methods provide= d by Tomcat do restart a webapp without restarting the Tomcat server itself), a java.lang.ThreadDeath exception is thrown when commons-logging calls a log4j logging function. - We suspect this exception is thrown by Tomcat because the ClassLoade= r used by commons-logging to load the log4j class is invalid. But it's still the cache key in the commons-logging cache. It's invalid becaus= e when restarting a webapp Tomcat provides it with a new set of classloaders per the Servlet Specification. >the commons-logging classloader stuff was created IIRC by craig, remy= >and others. i don't feel qualified to second-guess their knowledge of= >servlet containers. You recall correctly as far as Craig ;) We're not second-guessing the= ir knowledge or even their implementation. But the Tomcat webapp reloadi= ng code has evolved sufficiently since the initial creation of commons-logging's cache implementation that now the two are not playin= g perfectly together. >i've wanted for a while to use a WeakHashMap so that old classloaders= >who be garbage collected but don't see that there's an easy way to do= >this without breaking compatibility. What would break if we switched commons-logging to use such a WeakHashMap instead of the currently used normal HashMap? Yoav This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org