0 Replies Latest reply on Apr 10, 2014 8:18 AM by Lukasz Sroka

    Unable to parse document 'jndi:/xxxxxx/WEB-INF/faces-config.xml'

    Lukasz Sroka Newbie

      Hello
      I have following error when starting my jboss

      It is webapp with few other jar's. All are based on switchyard 1.0.0
      Main troble is that this error only apears when i strat server without jRebel.
      When jRebel is ON everything goes well.

      Best regards

       

       

      14:06:03,701 INFO  [org.jboss.modules] (main) JBoss Modules version 1.2.0.Final-redhat-1

      14:06:03,854 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.4.GA-redhat-1

      14:06:03,912 INFO  [org.jboss.as] (MSC service thread 1-7) JBAS015899: JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8) starting

      14:06:04,701 INFO  [org.switchyard] (ServerService Thread Pool -- 29) SwitchYard version 1.1.0.Final

       

      ...

      ...

       

      14:06:11,400 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 62) Critical error during deployment: : com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/digialarm/WEB-INF/faces-config.xml': null

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:670) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:323) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

          at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_51]

          at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_51]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]

          at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

          at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/digialarm/WEB-INF/faces-config.xml': null

          at java.util.concurrent.FutureTask.report(FutureTask.java:122) [rt.jar:1.7.0_51]

          at java.util.concurrent.FutureTask.get(FutureTask.java:188) [rt.jar:1.7.0_51]

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:668) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          ... 13 more

      Caused by: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/digialarm/WEB-INF/faces-config.xml': null

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:917) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:863) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_51]

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:656) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          ... 13 more

      Caused by: java.io.FileNotFoundException

          at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:369) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

          at com.sun.faces.config.ConfigManager$ParseTask.getInputStream(ConfigManager.java:1104) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:938) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:908) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          ... 16 more

       

      14:06:11,445 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[digialarm].[/]] (ServerService Thread Pool -- 62) JBWEB000287: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/digialarm/WEB-INF/faces-config.xml': null

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:276) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

          at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_51]

          at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_51]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]

          at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

          at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/digialarm/WEB-INF/faces-config.xml': null

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:670) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:323) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          ... 11 more

      Caused by: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/digialarm/WEB-INF/faces-config.xml': null

          at java.util.concurrent.FutureTask.report(FutureTask.java:122) [rt.jar:1.7.0_51]

          at java.util.concurrent.FutureTask.get(FutureTask.java:188) [rt.jar:1.7.0_51]

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:668) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          ... 13 more

      Caused by: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/digialarm/WEB-INF/faces-config.xml': null

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:917) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:863) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_51]

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:656) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          ... 13 more

      Caused by: java.io.FileNotFoundException

          at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:369) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

          at com.sun.faces.config.ConfigManager$ParseTask.getInputStream(ConfigManager.java:1104) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:938) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:908) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          ... 16 more

       

      14:06:11,459 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 62) JBWEB001103: Error detected during context  start, will stop it

      14:06:11,490 SEVERE [javax.faces] (ServerService Thread Pool -- 62) Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.

      14:06:11,491 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 62) Unexpected exception when attempting to tear down the Mojarra runtime: java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.

          at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1010) [jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]

          at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:342) [jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]

          at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:141) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:314) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]

          at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3427) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

          at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3920) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3839) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

          at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_51]

          at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_51]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]

          at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

          at org.jboss.threads.JBossThread.run(JBossThread.java:122)

       

      14:06:11,493 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[digialarm].[/]] (ServerService Thread Pool -- 62) Cleaning up Shiro Environment

      14:06:11,497 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 62) MSC000001: Failed to start service jboss.web.deployment.digialarm./: org.jboss.msc.service.StartException in service jboss.web.deployment.digialarm./: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_51]

          at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_51]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]

          at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

          at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final-redhat-1.jar:2.1.0.Final-redhat-1]

      Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

          at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161)

          at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)

          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)

          ... 6 more