Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2535

Configuration scanning does not support the javax.faces.CONFIG_FILES context-param

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: liferay-faces-2.1.5-ga6, liferay-faces-2.2.5-ga6, liferay-faces-3.0.5-legacy-ga6, liferay-faces-3.0.5-ga6, liferay-faces-3.1.5-ga6, liferay-faces-3.2.5-ga6, liferay-faces-4.2.5-ga6
    • Fix Version/s: util-3.2.1
    • Component/s: Liferay Faces Util
    • Labels:
      None

      Description

      JSF implementations support usage of the javax.faces.CONFIG_FILES context-param inside web.xml descriptors in order to separate out faces-config info into separate files. Currently the configuration scanning in liferay-faces-util only scans WEB-INF/faces-config.xml.

      Util also throws an exception if WEB-INF/faces-config.xml doesn't exist even though it is optional:

      Nov 04, 2015 11:08:01 PM com.liferay.faces.util.config.internal.FacesConfigScannerImpl scan
      SEVERE: InputStream cannot be null            
      java.lang.IllegalArgumentException: InputStream cannot be null
              at javax.xml.parsers.SAXParser.parse(SAXParser.java:191)
              at com.liferay.faces.util.config.internal.FacesConfigDescriptorParserImpl.parse(FacesConfigDescriptorParserImpl.java:228)       
              at com.liferay.faces.util.config.internal.FacesConfigScannerImpl.scan(FacesConfigScannerImpl.java:148)                          
              at com.liferay.faces.util.config.internal.ApplicationConfigInitializerImpl.initialize(ApplicationConfigInitializerImpl.java:76) 
              at com.liferay.faces.util.event.internal.ApplicationStartupListener.processSystemEvent(ApplicationStartupListener.java:61)      
              at com.liferay.faces.util.event.internal.ApplicationStartupListenerCompat.processEvent(ApplicationStartupListenerCompat.java:41)
              at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
              at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2166)                                        
              at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2139)                                      
              at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303)
              at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:601)
              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:370)
              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216)                                        
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)                                            
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)                                            
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
              at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
              at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1879)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)                                              
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)                                              
              at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Packages

                  Version Package
                  util-3.2.1