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 D55ACCFF2 for ; Sun, 7 Jul 2013 04:05:52 +0000 (UTC) Received: (qmail 22569 invoked by uid 500); 7 Jul 2013 04:05:51 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 22509 invoked by uid 500); 7 Jul 2013 04:05:50 -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 22489 invoked by uid 99); 7 Jul 2013 04:05:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jul 2013 04:05:48 +0000 Date: Sun, 7 Jul 2013 04:05:48 +0000 (UTC) From: "Nick Williams (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LOG4J2-293) classloader URI scheme broken or insufficient when using Log4jContextListener 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-293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nick Williams updated LOG4J2-293: --------------------------------- Assignee: Nick Williams > classloader URI scheme broken or insufficient when using Log4jContextListener > ----------------------------------------------------------------------------- > > Key: LOG4J2-293 > URL: https://issues.apache.org/jira/browse/LOG4J2-293 > Project: Log4j 2 > Issue Type: Bug > Components: Configurators > Affects Versions: 2.0-beta7 > Reporter: Neale Upstone > Assignee: Nick Williams > Labels: documentation > > I'm trying to migrate to Log4j2, and things looked promising when I spotted Log4jContextListener. > However, there are too many holes. > Firstly, I tried using classpath: as a scheme, and nothing blew up, so I assumed I'd got it right. > Then I *looked at the code* (which shouldn't be how we find out) and eventually discovered some code relating to a 'classloader' scheme. > Still silent failure. It seems that the classpath is not being searched, perhaps just the WAR classloader, not the JARs in WEB-INF/lib. > Next I tried omitting the / (i.e. using classloader:log4j2.xml) and got a NullPointerException. > Can you please document what schemes are supported and what you expect them to do, and *not fail silently* when a configuration file is specified, but nothing happens. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org