3 Replies Latest reply on Feb 7, 2013 11:50 AM by Nicklas Karlsson

    Deployment error in JBOSS AS 7.1.1 - JSF2.0+Primefaces2.1+SWF2.0

    Badri nath Newbie

      Hi All,

       

      I am getting the following error while deploying my ear in JBOSS AS 7.1.1. I am using JSF2.0Primefaces2.1SWF2.0.

       

       

      Critical error during deployment: : com.sun.faces.config.ConfigurationException: Factory 'javax.faces.application.ApplicationFactory' was not configured properly.

           at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:305)

           at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:219)

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

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

           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: javax.faces.FacesException: org.springframework.faces.webflow.FlowApplicationFactory

           at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:643)

           at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:509)

           at javax.faces.FactoryFinder.access$400(FactoryFinder.java:139)

           at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:993)

           at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343)

           at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:303)

           ... 11 more

      Caused by: java.lang.InstantiationException: org.springframework.faces.webflow.FlowApplicationFactory

           at java.lang.Class.newInstance0(Class.java:357)

           at java.lang.Class.newInstance(Class.java:325)

           at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:641)

           ... 16 more

       

      19:18:59,458 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/PowerManagement-web]] (MSC service thread 1-4) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.application.ApplicationFactory' was not configured properly.

           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: Factory 'javax.faces.application.ApplicationFactory' was not configured properly.

           at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:305)

           at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:219)

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

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

           ... 8 more

      Caused by: javax.faces.FacesException: org.springframework.faces.webflow.FlowApplicationFactory

           at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:643)

           at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:509)

           at javax.faces.FactoryFinder.access$400(FactoryFinder.java:139)

           at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:993)

           at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343)

           at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:303)

           ... 11 more

      Caused by: java.lang.InstantiationException: org.springframework.faces.webflow.FlowApplicationFactory

           at java.lang.Class.newInstance0(Class.java:357)

           at java.lang.Class.newInstance(Class.java:325)

           at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:641)

           ... 16 more

       

      19:18:59,474 ERROR org.apache.catalina.core.StandardContext (MSC service thread 1-4) Error listenerStart

      19:18:59,475 ERROR org.apache.catalina.core.StandardContext (MSC service thread 1-4) Context /PowerManagement-web startup failed due to previous errors

      19:18:59,478 SEVERE Deployment error in JBOSS AS 7.1.1 - JSF2.0+Primefaces2.1+SWF2.0 (MSC service thread 1-4) Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.

      19:18:59,479 SEVERE javax.enterprise.resource.webcontainer.jsf.config (MSC service thread 1-4) 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)

           at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343)

           at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:131)

           at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:328)

           at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3489)

           at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3999)

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

           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)

       

      19:18:59,486 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/PowerManagement-web]] (MSC service thread 1-4) Closing Spring root WebApplicationContext

      19:18:59,487 INFO  org.springframework.web.context.support.XmlWebApplicationContext (MSC service thread 1-4) Closing Root WebApplicationContext: startup date ; root of context hierarchy

      19:18:59,488 INFO  org.springframework.beans.factory.support.DefaultListableBeanFactory (MSC service thread 1-4) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@ba3e1d: defining beans []; root of factory hierarchy

      19:18:59,505 ERROR org.jboss.msc.service.fail (MSC service thread 1-4) MSC00001: Failed to start service jboss.web.deployment.default-host./PowerManagement-web: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./PowerManagement-web: 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)

           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)

       

      please help me.

        • 2. Re: Deployment error in JBOSS AS 7.1.1 - JSF2.0+Primefaces2.1+SWF2.0
          Badri nath Newbie

          Hi Nicklas,

           

          Following are the jars i am using in my war.

           

          antlr-2.7.6.jar

          aopalliance-1.0.jar

          asm-1.5.3.jar

          asm-attrs-1.5.3.jar

          axis-1.4.14.jar

          axis-wsdl4j-1.5.1.jar

          cglib-2.1_3.jar

          com.springsource.org.aopalliance-1.0.0.jar

          com.springsource.org.apache.commons.codec-1.3.0.jar

          com.springsource.org.apache.commons.collections-3.2.0.jar

          com.springsource.org.apache.commons.lang-2.1.0.jar

          com.springsource.org.apache.commons.logging-1.1.1.jar

          com.springsource.org.jboss.el-2.0.0.GA.jar

          commons-beanutils-1.8.3.jar

          commons-codec-1.3.jar

          commons-collections-3.2.jar

          commons-digester-1.7.jar

          commons-discovery-0.2.jar

          commons-fileupload-1.2.jar

          commons-io-2.0.1.jar

          commons-lang-2.4.jar

          commons-logging-1.0.3.jar

          commons-validator-1.3.1.jar

          desmon-5.jar

          dom4j-1.6.1.jar

          ehcache-1.2.3.jar

          fusionchartstaglibJSF1_1.jar

          javassist-3.3.GA.jar

          jboss-el-2.0.0.GA.jar

          jboss-envers-1.2.2.GA-hibernate-3.3.jar

          joda-time-1.6.jar

          joda-time-hibernate-1.2.jar

          jsf-api-1.2_14.jar

          jsf-facelets-1.1.15.jar

          jsf-impl-1.2_14.jar

          jstl-1.1.2.jar

          jta-1.1.jar

          lms.jmx.interface-1.7.0.jar

          lms.jmx.server-1.7.0.jar

          lms.log4j.admin-1.5.1.jar

          lms.log4j.appender-1.5.1.jar

          lms.log4j.listener-1.5.1.jar

          lms.weblogic.utils-1.3.0.jar

          log4j-1.2.16.jar

          nekohtml-1.9.12.jar

          org.springframework.aop-2.5.6.SEC02.jar

          org.springframework.beans-2.5.6.SEC02.jar

          org.springframework.binding-2.0.7.RELEASE.jar

          org.springframework.context-2.5.6.SEC02.jar

          org.springframework.core-2.5.6.SEC02.jar

          org.springframework.faces-2.0.7.RELEASE.jar

          org.springframework.js-2.0.7.RELEASE.jar

          org.springframework.security-2.0.4.A.jar

          org.springframework.transaction-2.5.6.SEC02.jar

          org.springframework.web-2.5.6.SEC02.jar

          org.springframework.web-3.0.1.RELEASE-A.jar

          org.springframework.web.servlet-2.5.6.SEC02.jar

          org.springframework.webflow-2.0.7.RELEASE.jar

          persistence-api-1.0.jar

          PowerManagement-ejb-0.0.1-SNAPSHOT.jar

          richfaces-api-3.3.2.SR1.jar

          richfaces-impl-3.3.2.SR1.jar

          richfaces-ui-3.3.2.SR1.jar

          slf4j-api-1.5.10.jar

          slf4j-log4j12-1.5.10.jar

          spring-aop-2.5.6.SEC02.jar

          spring-beans-2.5.6.SEC02.jar

          spring-context-2.5.6.SEC02.jar

          spring-context-support-2.5.6.SEC02.jar

          spring-core-2.5.6.SEC02.jar

          tibcrypt-4.4.0.jar

           

           

          Thanks & Regards

          Badrinath

          • 3. Re: Deployment error in JBOSS AS 7.1.1 - JSF2.0+Primefaces2.1+SWF2.0
            Nicklas Karlsson Master

            This is the place where T.C. usually comes in and tells you what to remove ;-)

             

            My candidates for removal would be (for a start)

             

            antlr-2.7.6.jar

            aopalliance-1.0.jar

            asm-1.5.3.jar

            asm-attrs-1.5.3.jar

            axis-1.4.14.jar

            axis-wsdl4j-1.5.1.jar

            cglib-2.1_3.jar

            dom4j-1.6.1.jar

            ehcache-1.2.3.jar

            javassist-3.3.GA.jar

            jboss-el-2.0.0.GA.jar

            jboss-envers-1.2.2.GA-hibernate-3.3.jar

            jsf-api-1.2_14.jar

            jsf-facelets-1.1.15.jar

            jsf-impl-1.2_14.jar

            jstl-1.1.2.jar

            jta-1.1.jar

            log4j-1.2.16.jar

            persistence-api-1.0.jar

            slf4j-api-1.5.10.jar

            slf4j-log4j12-1.5.10.jar