Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7007810D05 for ; Mon, 7 Apr 2014 15:04:40 +0000 (UTC) Received: (qmail 27425 invoked by uid 500); 7 Apr 2014 15:04:35 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 27278 invoked by uid 500); 7 Apr 2014 15:04:34 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 27113 invoked by uid 99); 7 Apr 2014 15:04:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2014 15:04:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dkollross@empro.com.br designates 177.124.111.133 as permitted sender) Received: from [177.124.111.133] (HELO mail.riopreto.sp.gov.br) (177.124.111.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2014 15:04:27 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.riopreto.sp.gov.br (Postfix) with ESMTP id 1AF42800EA for ; Mon, 7 Apr 2014 11:59:03 -0300 (BRT) X-Virus-Scanned: amavisd-new at riopreto.sp.gov.br Received: from mail.riopreto.sp.gov.br ([127.0.0.1]) by localhost (mail.riopreto.sp.gov.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dgujha+8mh3J for ; Mon, 7 Apr 2014 11:58:54 -0300 (BRT) Received: from EMPRO008PC052 (empro-008-pc052.rede-empro.empro.com.br [10.1.0.61]) by mail.riopreto.sp.gov.br (Postfix) with ESMTP id EEC7C800DA for ; Mon, 7 Apr 2014 11:58:53 -0300 (BRT) From: "Diogo Kollross" To: Subject: JULI ClassLoaderManager - weird behaviour with some class loaders Date: Mon, 7 Apr 2014 12:03:55 -0300 Message-ID: <015401cf5272$9858f5b0$c90ae110$@empro.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac9ScpgxnGbdZHfTT+akx4MH1pNB0Q== Content-Language: pt-br X-Virus-Checked: Checked by ClamAV on apache.org Hello, Reading the source of the readConfiguration(ClassLoader) method in ClassLoaderLogManager I noticed that the input stream that is used to load the properties file is not always set. It is only set when classloader is an instance of URLClassLoader, and when it's the system class loader. Right before the end of the method the root logger of the parent class loader may be retrieved, but in this case the properties file is not loaded as the stream was not set (with getResourceAsStream for example). Is this intentional? Is it expected that the class loader will always be a URLClassLoader or the system class loader? Then why is the root logger of the parent class loader searched whenever the input stream is not set? Regards, Diogo --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org