1 Reply Latest reply on Jul 3, 2012 4:24 AM by Marek Novotny

    Seam 2.2 to 2.3 migration: "CONFIGURATION FAILED! null"

    Sean Tozer Newbie

      Hi all. I'm in the midst of trying to migrate a semi-complex Seam 2.2 application to 2.3, as hopefully a stepping stone to 3.0 at some point. I've navigated (I think) through the various compiler-level issues and jar compatibility shenanigans, and it's now getting most of the way through deploying my app. However, I then hit this message, which really isn't giving me a whole lot to go on in terms of what might be wrong:

       

      15:41:02,933 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-2) Initializing Mojarra 2.1.7-jbossorg-1 (20120227-1401) for context '/lims'

      15:41:08,284 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-2) Critical error during deployment: : com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          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$Worker.runTask(Unknown Source) [rt.jar:1.6.0_33]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_33]

          at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_33]

      Caused by: java.lang.UnsupportedOperationException

          at javax.faces.application.Application.getResourceHandler(Application.java:287) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

          at javax.faces.application.ApplicationWrapper.getResourceHandler(ApplicationWrapper.java:506) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

          at com.sun.faces.config.processor.ApplicationConfigProcessor.setResourceHandler(ApplicationConfigProcessor.java:766) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:313) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) [jsf-impl-2.1.7-jbossorg-2.jar:]

          ... 9 more

       

      15:41:08,300 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/lims]] (MSC service thread 1-2) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          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$Worker.runTask(Unknown Source) [rt.jar:1.6.0_33]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_33]

          at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_33]

      Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]

          ... 8 more

      Caused by: java.lang.UnsupportedOperationException

          at javax.faces.application.Application.getResourceHandler(Application.java:287) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

          at javax.faces.application.ApplicationWrapper.getResourceHandler(ApplicationWrapper.java:506) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

          at com.sun.faces.config.processor.ApplicationConfigProcessor.setResourceHandler(ApplicationConfigProcessor.java:766) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:313) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) [jsf-impl-2.1.7-jbossorg-2.jar:]

          ... 9 more

       

      15:41:08,315 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart

      15:41:08,316 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [/lims] startup failed due to previous errors

      15:41:08,321 SEVERE [javax.faces] (MSC service thread 1-2) Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.

      15:41:08,323 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-2) 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:1008) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

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

          at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:131) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:328) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3489) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3999) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3917) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          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$Worker.runTask(Unknown Source) [rt.jar:1.6.0_33]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_33]

          at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_33]

       

      15:41:08,336 INFO  [org.quartz.core.QuartzScheduler] (MSC service thread 1-2) Scheduler LIMSQuartz_$_1 shutting down.

      15:41:08,337 INFO  [org.quartz.core.QuartzScheduler] (MSC service thread 1-2) Scheduler LIMSQuartz_$_1 paused.

      15:41:08,342 INFO  [org.quartz.core.QuartzScheduler] (MSC service thread 1-2) Scheduler LIMSQuartz_$_1 shutdown complete.

      15:41:08,355 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.web.deployment.default-host./lims: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./lims: JBAS018040: Failed to start context

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

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_33]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_33]

          at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_33]

       

      faces-config.xml:

       

      <?xml version='1.0' encoding='UTF-8'?>

      <faces-config xmlns="http://java.sun.com/xml/ns/javaee" version="2.0">

       

         <application>

            <locale-config>

               <default-locale>en</default-locale>

               <supported-locale>bg</supported-locale>

               <supported-locale>de</supported-locale>

               <supported-locale>en</supported-locale>

               <supported-locale>fr</supported-locale>

               <supported-locale>it</supported-locale>

               <supported-locale>tr</supported-locale>

            </locale-config>

         </application>

       

      </faces-config>

       

       

      and web.xml:

      <?xml version="1.0" ?>

       

      <web-app version="3.0"

               xmlns="http://java.sun.com/xml/ns/javaee"

               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">

       

          <!-- To keep memory consumption in check, set the default session timeout to 10 minutes.

              Note that the unit here is minutes. -->

          <session-config>

              <session-timeout>20</session-timeout>

          </session-config>

       

         <!-- RichFaces -->

       

         <context-param>

            <param-name>org.richfaces.skin</param-name>

            <param-value>TCP</param-value>

         </context-param>

        

         <context-param>

               <param-name>org.richfaces.queue.global.enabled</param-name>

            <param-value>true</param-value>

         </context-param>

       

          <!-- Making the RichFaces skin spread to standard HTML controls -->

         <context-param>

            <param-name>org.richfaces.enableControlSkinning</param-name>

            <param-value>disable</param-value>

         </context-param>

       

         <context-param>

            <param-name>org.richfaces.enableControlSkinningClasses</param-name>

            <param-value>disable</param-value>

         </context-param>

       

         <!-- Change load strategy to DEFAULT to disable sending scripts/styles as packs -->

       

         <context-param>

            <param-name>org.richfaces.resourceOptimization.enabled</param-name>

            <param-value>true</param-value>

         </context-param>

       

         <!-- Seam -->

        

             <context-param>

                 <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>

              <param-value>TIDY,NONE</param-value>

          </context-param>

       

         <filter>

            <filter-name>Seam Filter</filter-name>

            <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>

         </filter>

       

         <listener>

            <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>

         </listener>

       

         <filter-mapping>

            <filter-name>Seam Filter</filter-name>

            <url-pattern>/*</url-pattern>

         </filter-mapping>

       

         <servlet>

            <servlet-name>Seam Resource Servlet</servlet-name>

            <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>

         </servlet>

       

         <servlet-mapping>

            <servlet-name>Seam Resource Servlet</servlet-name>

            <url-pattern>/seam/resource/*</url-pattern>

         </servlet-mapping>

        

         <servlet>

              <servlet-name>Document Store Servlet</servlet-name>

              <servlet-class>org.jboss.seam.document.DocumentStoreServlet</servlet-class>

          </servlet>

         

          <servlet-mapping>

              <servlet-name>Document Store Servlet</servlet-name>

              <url-pattern>*.pdf</url-pattern>

          </servlet-mapping>

          <servlet-mapping>

              <servlet-name>Document Store Servlet</servlet-name>

              <url-pattern>*.ics</url-pattern>

          </servlet-mapping>

          <servlet-mapping>

              <servlet-name>Document Store Servlet</servlet-name>

              <url-pattern>*.xls</url-pattern>

          </servlet-mapping>

          <servlet-mapping>

              <servlet-name>Document Store Servlet</servlet-name>

              <url-pattern>*.doc</url-pattern>

          </servlet-mapping>

        

       

         <!-- Facelets development mode (disable in production) -->

       

         <context-param>

            <param-name>facelets.DEVELOPMENT</param-name>

            <param-value>@debug@</param-value>

         </context-param>

       

         <!-- JSF -->

         <context-param>

            <param-name>com.sun.faces.enableViewStateIdRendering</param-name>

            <param-value>false</param-value>

         </context-param>

       

         <context-param>

            <param-name>javax.faces.DEFAULT_SUFFIX</param-name>

            <param-value>.xhtml</param-value>

         </context-param>

       

         <servlet>

            <servlet-name>Faces Servlet</servlet-name>

            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

            <load-on-startup>1</load-on-startup>

         </servlet>

       

         <servlet-mapping>

            <servlet-name>Faces Servlet</servlet-name>

            <url-pattern>*.seam</url-pattern>

         </servlet-mapping>

       

         <security-constraint>

            <display-name>Restrict raw XHTML Documents</display-name>

            <web-resource-collection>

               <web-resource-name>XHTML</web-resource-name>

               <url-pattern>*.xhtml</url-pattern>

            </web-resource-collection>

            <auth-constraint/>

         </security-constraint>

        

           <security-constraint>

            <display-name>Restrict raw xml Documents</display-name>

            <web-resource-collection>

               <web-resource-name>XML</web-resource-name>

               <url-pattern>*.xml</url-pattern>

            </web-resource-collection>

            <auth-constraint/>

         </security-constraint>

        

            <security-constraint>

                 <display-name>Force SSL</display-name>

              <web-resource-collection>

                  <web-resource-name>Entire Application</web-resource-name>

                  <url-pattern>*.seam</url-pattern>

              </web-resource-collection>

         

              <user-data-constraint>

                  <transport-guarantee>CONFIDENTIAL</transport-guarantee>

              </user-data-constraint>

          </security-constraint>

         

          <persistence-unit-ref>

            <persistence-unit-ref-name>lims/pu</persistence-unit-ref-name>

            <persistence-unit-name>lims</persistence-unit-name>

         </persistence-unit-ref>

        

          <context-param>

              <param-name>facelets.LIBRARIES</param-name>

              <param-value>

                  /WEB-INF/compositions.taglib.xml;

                  /WEB-INF/elfunctions.taglib.xml

              </param-value>

         </context-param>

       

      </web-app>

        • 1. Re: Seam 2.2 to 2.3 migration: "CONFIGURATION FAILED! null"
          Marek Novotny Master

          Hi Sean,

           

          could you post a list of included jars in your application lib directory? And show what you have in jboss-deployment-structure.xml file.

           

          You are probably have got wrong setup of JSF or wrong setup of jboss-deployment-structure.xml which should configure correct JSF module for your application.

           

          This error is an symptop of wrong used JSF version:

          Caused by: java.lang.UnsupportedOperationException

              at javax.faces.application.Application.getResourceHandler(Application.java:287) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

              at javax.faces.application.ApplicationWrapper.getResourceHandler(ApplicationWrapper.java:506) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

              at com.sun.faces.config.processor.ApplicationConfigProcessor.setResourceHandler(ApplicationConfigProcessor.java:766) [jsf-impl-2.1.7-jbossorg-2.jar:]

              at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:313) [jsf-impl-2.1.7-jbossorg-2.jar:]

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]

              at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116) [jsf-impl-2.1.7-jbossorg-2.jar:]

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]

              at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) [jsf-impl-2.1.7-jbossorg-2.jar:]

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) [jsf-impl-2.1.7-jbossorg-2.jar:]

              ... 9 more