com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExternalContextFactory' was not configured properly.

java.net | 4 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    [#GLASSFISH-15225] [OSGi] CDI beans not accessible in web applications

    java.net | 4 months ago
    com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExternalContextFactory' was not configured properly.
  2. 0

    CDI Injection Abstract and Generics

    Stack Overflow | 4 years ago | mateusduboli
    org.jboss.weld.exceptions.IllegalArgumentException: WELD-001408 Unsatisfied dependencies for type [IDAO<IModelBean>] with qualifiers [@Default] at injection point [[BackedAnnotatedField] @Inject private br.personal.mateusduboli.cdi.abstract_class.beans.implementation.AbstractBean.abstractDAO]

    Root Cause Analysis

    1. org.jboss.weld.exceptions.DefinitionException

      Exception message for key UNABLE_TO_FIND_CONSTRUCTOR not found due to String index out of range: -1

      at org.jboss.weld.util.Beans.getBeanConstructor()
    2. Weld Implementation
      BeanManagerImpl.createInjectionTarget
      1. org.jboss.weld.util.Beans.getBeanConstructor(Beans.java:327)
      2. org.jboss.weld.injection.InjectionPointFactory.createConstructorInjectionPoint(InjectionPointFactory.java:161)
      3. org.jboss.weld.injection.producer.DefaultInstantiator.<init>(DefaultInstantiator.java:59)
      4. org.jboss.weld.injection.producer.BasicInjectionTarget.initInstantiator(BasicInjectionTarget.java:153)
      5. org.jboss.weld.injection.producer.BasicInjectionTarget.<init>(BasicInjectionTarget.java:70)
      6. org.jboss.weld.injection.producer.BeanInjectionTarget.<init>(BeanInjectionTarget.java:44)
      7. org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:80)
      8. org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:65)
      9. org.jboss.weld.manager.BeanManagerImpl.createInjectionTarget(BeanManagerImpl.java:1039)
      9 frames
    3. Embedded GlassFish Web
      GlassFishInjectionProvider.inject
      1. org.glassfish.weld.services.JCDIServiceImpl.injectManagedObject(JCDIServiceImpl.java:286)
      2. org.glassfish.faces.integration.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:189)
      2 frames
    4. JavaEE 7
      FactoryFinder.getFactory
      1. javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:695)
      2. javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:572)
      3. javax.faces.FactoryFinder.access$500(FactoryFinder.java:140)
      4. javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1120)
      5. javax.faces.FactoryFinder.getFactory(FactoryFinder.java:379)
      5 frames
    5. 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:424)
      4. com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:214)
      4 frames
    6. Glassfish Core
      StandardContext.contextListenerStart
      1. org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:5362)
      1 frame
    7. Glassfish
      WebModule.contextListenerStart
      1. com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:743)
      1 frame
    8. Glassfish Core
      StandardContext.start
      1. org.apache.catalina.core.StandardContext.start(StandardContext.java:5898)
      1 frame
    9. Glassfish
      WebModule.start
      1. com.sun.enterprise.web.WebModule.start(WebModule.java:691)
      1 frame
    10. Glassfish Core
      StandardHost.addChild
      1. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
      2. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
      3. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
      3 frames
    11. Glassfish
      WebApplication.start
      1. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2279)
      2. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1925)
      3. com.sun.enterprise.web.WebApplication.start(WebApplication.java:139)
      3 frames
    12. Private APIs of Glassfish
      ApplicationInfo.start
      1. org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
      2. org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
      3. org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
      3 frames
    13. Kernel Classes
      ApplicationLifecycle.deploy
      1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
      2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
      2 frames
    14. Embedded GlassFish Web
      JavaEEExtender$HybridBundleTrackerCustomizer$1.call
      1. org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
      2. org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
      3. org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
      4. org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
      5. org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
      6. org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
      7. org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
      8. org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
      8 frames
    15. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      5. java.lang.Thread.run(Thread.java:722)
      5 frames