Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-517

/WEB-INF/faces-config.xml parsed twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.0.9m9
    • 1.1.1
    • General
    • None

    Description

      If the config file is named faces-config.xml and it is configured web.xml

      <context-param>
      <param-name>javax.faces.CONFIG_FILES</param-name>
      <param-value>/WEB-INF/faces-config.xml</param-value>
      </context-param>

      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().

      Attachments

        Activity

          People

            mmarinschek Martin Marinschek
            holger.schimanski Holger Schimanski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: