[ 
https://issues.apache.org/jira/browse/MYFACES-3055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998317#comment-12998317
 ] 

Jakob Korherr commented on MYFACES-3055:
----------------------------------------

Great to see a working workaround in place for this issue. Thanks vvasabi.

However, I'd like to know the general opinion here if we should fix this issue 
in MyFaces directly in order to circumvent the container problems, or just 
"provide" this workaround and tell people it's a container issue? WDYT?

> META-INF/faces-config.xml files in JARs are loaded twice
> --------------------------------------------------------
>
>                 Key: MYFACES-3055
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3055
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.3, 2.0.4
>         Environment: Mac OS X, EclipseRT Virgo 2.1.0
>            Reporter: vvasabi
>
> META-INF/faces-config.xml files in the jars of component libraries are loaded 
> twice, causing OpenFaces to give the following error:
> Second notification for the same phase in the same request occurred.
> Below is the server log. Note that same config files, 
> 99/1/bundlefile!/META-INF/faces-config.xml and 
> 101/1/bundlefile!/META-INF/faces-config.xml are loaded twice.
> [2011-02-22 17:00:55.245] start-signalling-1           System.err             
>                                            Feb 22, 2011 5:00:55 PM 
> org.apache.myfaces.config.DefaultFacesConfigurationProvider 
> getClassloaderFacesConfig 
> [2011-02-22 17:00:55.246] start-signalling-1           System.err             
>                                            INFO: Reading config : 
> jar:file:/usr/local/virgo-web-server/work/osgi/configuration/org.eclipse.osgi/bundles/36/data/store/org.eclipse.osgi/bundles/99/1/bundlefile!/META-INF/faces-config.xml
>  
> [2011-02-22 17:00:55.277] start-signalling-1           System.err             
>                                            Feb 22, 2011 5:00:55 PM 
> org.apache.myfaces.config.DefaultFacesConfigurationProvider 
> getClassloaderFacesConfig 
> [2011-02-22 17:00:55.277] start-signalling-1           System.err             
>                                            INFO: Reading config : 
> jar:file:/usr/local/virgo-web-server/work/osgi/configuration/org.eclipse.osgi/bundles/36/data/store/org.eclipse.osgi/bundles/101/1/bundlefile!/META-INF/faces-config.xml
>  
> [2011-02-22 17:00:55.290] start-signalling-1           System.err             
>                                            Feb 22, 2011 5:00:55 PM 
> org.apache.myfaces.config.DefaultFacesConfigurationProvider 
> getClassloaderFacesConfig 
> [2011-02-22 17:00:55.291] start-signalling-1           System.err             
>                                            INFO: Reading config : 
> jar:file:/usr/local/virgo-web-server/work/osgi/configuration/org.eclipse.osgi/bundles/36/data/store/org.eclipse.osgi/bundles/99/1/bundlefile!/META-INF/faces-config.xml
>  
> [2011-02-22 17:00:55.369] start-signalling-1           System.err             
>                                            Feb 22, 2011 5:00:55 PM 
> org.apache.myfaces.config.DefaultFacesConfigurationProvider 
> getClassloaderFacesConfig 
> [2011-02-22 17:00:55.370] start-signalling-1           System.err             
>                                            INFO: Reading config : 
> jar:file:/usr/local/virgo-web-server/work/osgi/configuration/org.eclipse.osgi/bundles/36/data/store/org.eclipse.osgi/bundles/101/1/bundlefile!/META-INF/faces-config.xml
> However, /WEB-INF/faces-config.xml in the war is only loaded once, so I 
> suspect that this is a bug with 
> org.apache.myfaces.config.DefaultFacesConfigurationProvider. My current 
> workaround to install OpenFaces is, therefore, extract 
> META-INF/faces-config.xml out of the jar, and load it with the war.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to