java.lang.NoClassDefFoundError: Could not initialize class org.omnifaces.config.BeanManager

Stack Overflow | Steve | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Omnifaces-Exception: CDI BeanManager instance is not available in JNDI

    Stack Overflow | 7 months ago | Steve
    java.lang.NoClassDefFoundError: Could not initialize class org.omnifaces.config.BeanManager
  2. 0

    fixing OmniFaces BeanManager initialization issues when Tomcat starts

    Stack Overflow | 6 months ago | Stéphane Appercel
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class org.omnifaces.config.BeanManager

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class org.omnifaces.config.BeanManager

      at org.omnifaces.util.Beans.getManager()
    2. org.omnifaces.util
      Beans.getReference
      1. org.omnifaces.util.Beans.getManager(Beans.java:88)
      2. org.omnifaces.util.Beans.getReference(Beans.java:113)
      2 frames
    3. org.omnifaces.application
      OmniApplicationFactory.getApplication
      1. org.omnifaces.application.OmniApplication.<init>(OmniApplication.java:70)
      2. org.omnifaces.application.OmniApplicationFactory.createOmniApplication(OmniApplicationFactory.java:89)
      3. org.omnifaces.application.OmniApplicationFactory.getApplication(OmniApplicationFactory.java:54)
      3 frames
    4. JSF
      ClientWindowFactoryImpl.<init>
      1. com.sun.faces.application.InjectionApplicationFactory.getApplication(InjectionApplicationFactory.java:93)
      2. com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:142)
      3. com.sun.faces.lifecycle.ClientWindowFactoryImpl.<init>(ClientWindowFactoryImpl.java:62)
      3 frames
    5. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      5. java.lang.Class.newInstance(Class.java:442)
      5 frames
    6. JavaEE 7
      FactoryFinder.getFactory
      1. javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl(FactoryFinderInstance.java:405)
      2. javax.faces.FactoryFinderInstance.getImplementationInstance(FactoryFinderInstance.java:251)
      3. javax.faces.FactoryFinderInstance.getFactory(FactoryFinderInstance.java:543)
      4. javax.faces.FactoryFinder.getFactory(FactoryFinder.java:283)
      4 frames
    7. JSF
      ConfigureListener.contextInitialized
      1. com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:328)
      2. com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:236)
      3. com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:439)
      4. com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:227)
      4 frames
    8. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4840)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      4. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
      5. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
      5 frames
    9. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames