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 C78FA17527 for ; Sun, 27 Sep 2015 02:41:04 +0000 (UTC) Received: (qmail 90663 invoked by uid 500); 27 Sep 2015 02:41:04 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 90613 invoked by uid 500); 27 Sep 2015 02:41:04 -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 90602 invoked by uid 99); 27 Sep 2015 02:41:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Sep 2015 02:41:04 +0000 Date: Sun, 27 Sep 2015 02:41:04 +0000 (UTC) From: "Ralph Goers (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (LOG4J2-873) WebLookup shouldn't require display-name element in web.xml 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-873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ralph Goers reassigned LOG4J2-873: ---------------------------------- Assignee: Ralph Goers > WebLookup shouldn't require display-name element in web.xml > ----------------------------------------------------------- > > Key: LOG4J2-873 > URL: https://issues.apache.org/jira/browse/LOG4J2-873 > Project: Log4j 2 > Issue Type: Bug > Components: Web/Servlet > Affects Versions: 2.0.2 > Reporter: Martin Dickins > Assignee: Ralph Goers > Priority: Minor > Fix For: 2.4.1 > > > The initializeNonJndi method in Log4jWebInitializerImpl uses servletContext.getServletContextName() to get a context name (if the name hasn't been defined using log4jContextName). getServletContextName() returns the name as specified in the element in web.xml, but that is optional. > If neither nor log4jContextName is defined, this results in the servletContext not being set, so the WebLookup doesn't work. > It should use some sort of default. Probably the name of the war file or context file, if there's a generic way of getting that. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org