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