Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-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 DE3DD11768 for ; Thu, 21 Aug 2014 07:10:28 +0000 (UTC) Received: (qmail 56129 invoked by uid 500); 21 Aug 2014 07:10:28 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 56077 invoked by uid 500); 21 Aug 2014 07:10:28 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 56068 invoked by uid 99); 21 Aug 2014 07:10:28 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2014 07:10:28 +0000 Date: Thu, 21 Aug 2014 07:10:28 +0000 (UTC) From: "Gary Gregory (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-788) Make Log4j2 EAR friendly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4J2-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14105113#comment-14105113 ] Gary Gregory commented on LOG4J2-788: ------------------------------------- Patches to trunk welcome! ;-) Especially with a unit test. > Make Log4j2 EAR friendly > ------------------------ > > Key: LOG4J2-788 > URL: https://issues.apache.org/jira/browse/LOG4J2-788 > Project: Log4j 2 > Issue Type: Task > Reporter: Romain Manni-Bucau > > ClassLoaderContextSelector seems a good candidate for ears but has a little issue in org.apache.logging.log4j.core.util.Loader#getResource since it doesn't handle overriding by classloader. The idea would be to use getResources instead of getResource and if multiple URLs are found remove urls from parent classloaders. If some urls remains then returns the first one and log it is ambiguous (warning), if not apply same logic on original URL enum. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org