2 Replies Latest reply on Jul 12, 2013 4:10 AM by cfillot Branched from an earlier discussion.

    JSF deployment fails with "Could not find backup for factory" exception

    cfillot

      Hi David,

       

      It seems that not exploding the war file causes problems with JSF applications:

       

      18:40:52,941 SEVERE [javax.faces] (MSC service thread 1-1) Unable to obtain InjectionProvider from init time FacesContext. Does this container implement the Mojarra Injection SPI?
      18:40:52,941 SEVERE [javax.faces] (MSC service thread 1-1) Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory. Attempting to find backup.
      18:40:52,942 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.undertow.deployment.default-host./sigwebapp1: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-host./sigwebapp1: Failed to start service
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1898) [jboss-msc-1.2.0.Beta1.jar:1.2.0.Beta1]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
      Caused by: java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory.
          at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1135)
          at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:379)
          at javax.faces.webapp.FacesServlet.init(FacesServlet.java:350)
          at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:146)
          at io.undertow.servlet.core.ManagedServlet.start(ManagedServlet.java:63)
          at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:377)
          at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:81)
          at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:68)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1942) [jboss-msc-1.2.0.Beta1.jar:1.2.0.Beta1]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1875) [jboss-msc-1.2.0.Beta1.jar:1.2.0.Beta1]

       

      I checked on 8.0.0.Alpha2 and 7.2.0.Final.

       

      Hope this helps,

       

      Christophe