Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 67629 invoked from network); 6 Sep 2005 10:10:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Sep 2005 10:10:36 -0000 Received: (qmail 9819 invoked by uid 500); 6 Sep 2005 10:10:35 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 9533 invoked by uid 500); 6 Sep 2005 10:10:33 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 9520 invoked by uid 99); 6 Sep 2005 10:10:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 03:10:31 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id DFEE2353 for ; Tue, 6 Sep 2005 12:10:30 +0200 (CEST) Message-ID: <1168860060.1126001430914.JavaMail.jira@ajax.apache.org> Date: Tue, 6 Sep 2005 12:10:30 +0200 (CEST) From: "Martin Marinschek (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-517) /WEB-INF/faces-config.xml parsed twice In-Reply-To: <654062618.1125996210152.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/MYFACES-517?page=comments#action_12322723 ] Martin Marinschek commented on MYFACES-517: ------------------------------------------- I thought I did comment - obviously my comment was lost. the faces-config.xml file in your WEB-INF directory will automatically be parsed - no need to specify it as a context-param in your web.xml. If you do so, the faces-config.xml file will be (fully according to the spec) parsed twice. regards, Martin > /WEB-INF/faces-config.xml parsed twice > -------------------------------------- > > Key: MYFACES-517 > URL: http://issues.apache.org/jira/browse/MYFACES-517 > Project: MyFaces > Type: Bug > Components: Implementation > Versions: 1.0.9m9 > Reporter: Holger Schimanski > Assignee: Martin Marinschek > Fix For: Nightly Build > > If the config file is named faces-config.xml and it is configured web.xml > > javax.faces.CONFIG_FILES > /WEB-INF/faces-config.xml > > it is parsed twice by org.apache.myfaces.config.FacesConfigurator -- once in feedWebAppConfig() and once again in feedContextSpecifiedConfig(). > The result is, that for example configured PhaseListeners are instantiated twice and both called during lifecycle. > feedContextSpecifiedConfig() should skip /WEB-INF/faces-config.xml, because this is read in by feedWebAppConfig(). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira