1 Reply Latest reply on Jan 27, 2015 2:28 AM by valsaraj viswanathan

    ConfigurationException with JSF 2.2.8 on JBoss 7.1.2

    valsaraj viswanathan Master

      ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/App]] (MSC service thread 1-3) 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:/default-host/App/WEB-INF/faces-config.xml': null

        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)

        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)

        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

        at java.lang.Thread.run(Thread.java:722)

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

        at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:673)

        at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:323)

        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)

        ... 8 more

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

        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)

        at java.util.concurrent.FutureTask.get(FutureTask.java:111)

        at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:671)

        ... 10 more

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

        at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:921)

        at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:866)

        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

        at java.util.concurrent.FutureTask.run(FutureTask.java:166)

        at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:657)

        ... 10 more

      Caused by: java.lang.IllegalStateException

        at com.sun.faces.config.ConfigManager$ParseTask.getTransformer(ConfigManager.java:1089)

        at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:1013)

        at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:912)

        ... 14 more

        • 1. Re: ConfigurationException with JSF 2.2.8 on JBoss 7.1.2
          valsaraj viswanathan Master

          Issue fixed when I added dependency to JSF 2.2.8 in jboss-deployment-structure.xml file in the EAR META-INF/ directory that contains the following data:

          <sub-deployment name="sample.war">

                  <exclusions>

                      <module name="javax.faces.api"/>

                      <module name="com.sun.jsf-impl"/>

                  </exclusions>

                  <dependencies>

                      <module name="javax.faces.api" slot="2.2"/>

                      <module name="com.sun.jsf-impl" slot="2.2"/>

                  </dependencies>

              </sub-deployment>