2 Replies Latest reply on Aug 14, 2009 11:18 AM by Predrag Pramenko

    JSF initialization exception on WebSphere 7.0

    Magnus A Newbie

      On WAS 7.0 during application startup I'm facing exceptions similar to the following:


      ...
      [6.2.09 16:14:45:010 CET] 00000009 Initializatio I org.jboss.seam.init.Initialization init done initializing Seam
      ...
      [6.2.09 16:14:45:140 CET] 00000008 config        I   Initializing Sun's JavaServer Faces implementation (1.2_07-b03-FCS) for context '/gema'
      [6.2.09 16:14:47:640 CET] 00000008 FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_37de37de_09.02.06_16.14.46.9065880457697123384024.txt com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated 1341
      [6.2.09 16:14:47:656 CET] 00000008 webapp        E com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E: Exception caught while initializing context: {0}
                                       com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Unable to parse document 'wsjar:file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/rublevskyNode02Cell/test.ear/test.war/WEB-INF/lib/quipukit.jar!/META-INF/faces-config.xml': com.ibm.xtq.xslt.jaxp.HandledRuntimeException
           at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
           at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:175)
           at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1588)
           at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:350)
           at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:292)
           at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:99)
           at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:167)
           at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:727)
           at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:612)
           at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
           at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1142)
           at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1313)
           at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:611)
           at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:938)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:721)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2062)
           at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
           at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
           at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
           at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:108)
           at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:935)
           at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
           at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
      Caused by: com.sun.faces.config.ConfigurationException: Unable to parse document 'wsjar:file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/rublevskyNode02Cell/test.ear/test.war/WEB-INF/lib/quipukit.jar!/META-INF/faces-config.xml': com.ibm.xtq.xslt.jaxp.HandledRuntimeException
           at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:409)
           at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:353)
           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
           at java.util.concurrent.FutureTask.run(FutureTask.java:149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
           at java.lang.Thread.run(Thread.java:735)
      



      My application uses Seam and JSF and has a faces-config.xml file. Apart from that it utilizes a few frameworks which have bundled faces-config.xml (QuipuKit, MyFaces Tomahawk...). The exception occasionally occurs in any one of those. Sometimes, there is no exception and the application works.


      Do I need to do some WAS configuration, change the packing of my application, configure classloading (using child first for my web archive)?


      Packing is:


      + test.ear
        + test.war
          + WEB-INF
            faces-config.xml
          + lib
            quipukit.jar
            tomahawk.jar
      



      Regards,
      Magnus