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

Util throws IllegalArgumentException on deploy when project does not contain a faces-config.xml

    Details

      Description

      When Util is included as a dependency of a JSF project which does not have a faces-config.xml, the project fails to deploy with the following exception:

      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

              • Assignee:
                ui_faces UI Faces
                Reporter:
                kyle.stiemann Kyle Stiemann (Inactive)
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  util-1.0.0
                  util-2.0.0
                  util-3.0.0