java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError

Java.net JIRA | derekberube | 4 years ago
  1. 0

    The com.sun.faces.enableThreading parameter being set to false does not seem to be respected in the latest version of the JavaServer Faces RI. When I try to deploy 2.1.16 on GAE I get a java.util.concurrent.ExecutionException. The following is the stack trace: SEVERE: Application was not properly initialized at startup, could not find Factory: javax.faces.lifecycle.LifecycleFactory. Attempting to find backup. Jan 1, 2013 9:26:18 PM com.sun.faces.config.ConfigureListener contextInitialized SEVERE: Critical error during deployment: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:205) at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:232) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:157) at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:333) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:269) at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:245) Caused by: javax.faces.FacesException: java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError at com.sun.faces.config.ConfigManager.getAnnotatedClasses(ConfigManager.java:434) at com.sun.faces.config.processor.AbstractConfigProcessor.processAnnotations(AbstractConfigProcessor.java:326) at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:337) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) ... 19 more Caused by: java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at com.sun.faces.config.ConfigManager.getAnnotatedClasses(ConfigManager.java:430) ... 26 more Caused by: java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.sun.faces.util.Util.loadClass(Util.java:269) at com.sun.faces.config.AnnotationScanner.processClassList(AnnotationScanner.java:304) at com.sun.faces.config.JavaClassScanningAnnotationScanner.getAnnotatedClasses(JavaClassScanningAnnotationScanner.java:128) at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:844) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:796) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:351) ... 19 more Caused by: java.lang.IllegalStateException: Could not find backup for factory javax.faces.lifecycle.LifecycleFactory. at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1010) at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:342) at com.wildstartech.jsf.Form.<clinit>(Form.java:75) ... 30 more Jan 1, 2013 9:26:18 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: Failed startup of context com.google.appengine.tools.development.DevAppEngineWebAppContext@24bf1f20{/,/Users/derekberube/Documents/Programming/Java/MyJustoDelivery/war} java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:290) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:205) at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:232) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:157) at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:333) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:269) at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:245) Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223) ... 18 more Caused by: javax.faces.FacesException: java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError at com.sun.faces.config.ConfigManager.getAnnotatedClasses(ConfigManager.java:434) at com.sun.faces.config.processor.AbstractConfigProcessor.processAnnotations(AbstractConfigProcessor.java:326) at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:337) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) ... 19 more Caused by: java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at com.sun.faces.config.ConfigManager.getAnnotatedClasses(ConfigManager.java:430) ... 26 more Caused by: java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.sun.faces.util.Util.loadClass(Util.java:269) at com.sun.faces.config.AnnotationScanner.processClassList(AnnotationScanner.java:304) at com.sun.faces.config.JavaClassScanningAnnotationScanner.getAnnotatedClasses(JavaClassScanningAnnotationScanner.java:128) at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:844) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:796) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:351) ... 19 more Caused by: java.lang.IllegalStateException: Could not find backup for factory javax.faces.lifecycle.LifecycleFactory. at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1010) at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:342) at com.wildstartech.jsf.Form.<clinit>(Form.java:75) ... 30 more

    Java.net JIRA | 4 years ago | derekberube
    java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError
  2. 0

    [JAVASERVERFACES-2667] java.util.concurrent.ExecutionException With com.sun.faces.enableThreading Parameter set to false on GAE - Java.net JIRA

    java.net | 5 months ago
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError
  3. 0

    Liferay 6.2 and JSF/Primefaces integration issue

    Stack Overflow | 1 year ago | thanili
    java.lang.IllegalStateException: Could not find backup for factory javax.faces.lifecycle.LifecycleFactory.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Could not find backup for factory javax.faces.lifecycle.LifecycleFactory + WAS 8.5 + Mojarra

    Stack Overflow | 3 years ago | Piero Divasto
    java.lang.IllegalStateException: Could not find backup for factory javax.faces.lifecycle.LifecycleFactory.
  6. 0

    JSF portlet - IllegalStateException on Liferay 6.1

    Stack Overflow | 3 years ago | Mihail Zheludev
    java.lang.IllegalStateException: Could not find backup for factory javax.faces.lifecycle.LifecycleFactory.

    14 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Could not find backup for factory javax.faces.lifecycle.LifecycleFactory.

      at javax.faces.FactoryFinder$FactoryManager.getFactory()
    2. JavaEE 7
      FactoryFinder.getFactory
      1. javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1010)
      2. javax.faces.FactoryFinder.getFactory(FactoryFinder.java:342)
      2 frames
    3. com.wildstartech.gae
      Sample_2667.<clinit>
      1. com.wildstartech.gae.jsf21template.Sample_2667.<clinit>(Sample_2667.java:13)
      1 frame
    4. Java RT
      Class.forName
      1. java.lang.Class.forName0(Native Method)
      2. java.lang.Class.forName(Class.java:249)
      2 frames
    5. JSF
      ConfigManager$AnnotationScanTask.call
      1. com.sun.faces.util.Util.loadClass(Util.java:273)
      2. com.sun.faces.config.AnnotationScanner.processClassList(AnnotationScanner.java:304)
      3. com.sun.faces.config.JavaClassScanningAnnotationScanner.getAnnotatedClasses(JavaClassScanningAnnotationScanner.java:128)
      4. com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85)
      5. com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:841)
      6. com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:793)
      6 frames
    6. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      2 frames
    7. JSF
      ConfigureListener.contextInitialized
      1. com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:351)
      2. com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216)
      2 frames
    8. Jetty Server
      WebAppContext.doStart
      1. org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
      2. org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
      3. org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
      4. org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
      5. org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
      5 frames
    9. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      1 frame
    10. Jetty Server
      HandlerWrapper.doStart
      1. org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      1 frame
    11. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      1 frame
    12. Jetty Server
      Server.doStart
      1. org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      2. org.mortbay.jetty.Server.doStart(Server.java:224)
      2 frames
    13. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      1 frame
    14. AppEngine Testing
      DevAppServerMain$StartAction.apply
      1. com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:228)
      2. com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:255)
      3. com.google.appengine.tools.development.AbstractServer.startup(AbstractServer.java:79)
      4. com.google.appengine.tools.development.DevAppServerImpl$Servers.startup(DevAppServerImpl.java:451)
      5. com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:198)
      6. com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:333)
      6 frames
    15. com.google.appengine
      Parser$ParseResult.applyArgs
      1. com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
      1 frame
    16. AppEngine Testing
      DevAppServerMain.main
      1. com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:269)
      2. com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:245)
      2 frames