javax.enterprise.context.ContextNotActiveException

WebBeans context with scope type annotation @Singleton does not exist within current thread

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web58

  • WebBeans context with scope type annotation @Singleton does not exist within current thread
  • WebBeans context with scope type annotation @Singleton does not exist within current thread
  • WebBeans context with scope type annotation @Singleton does not exist within current thread
  • Stack trace

    • javax.enterprise.context.ContextNotActiveException: WebBeans context with scope type annotation @Singleton does not exist within current thread at org.apache.webbeans.container.BeanManagerImpl.getContext(BeanManagerImpl.java:351) at org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:861) at org.apache.webbeans.container.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:759) at org.apache.webbeans.inject.AbstractInjectable.inject(AbstractInjectable.java:136) at org.apache.webbeans.inject.InjectableField.doInjection(InjectableField.java:59) at org.apache.webbeans.component.AbstractInjectionTargetBean.injectField(AbstractInjectionTargetBean.java:387) at org.apache.webbeans.component.AbstractInjectionTargetBean.injectFields(AbstractInjectionTargetBean.java:324) at org.apache.webbeans.portable.creation.InjectionTargetProducer.inject(InjectionTargetProducer.java:95) at org.apache.webbeans.component.InjectionTargetWrapper.inject(InjectionTargetWrapper.java:76) at org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:181) at org.apache.webbeans.context.DependentContext.getInstance(DependentContext.java:70) at org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:132) at org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:872) at org.apache.webbeans.container.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:753) at org.apache.webbeans.inject.AbstractInjectable.inject(AbstractInjectable.java:136) at org.apache.webbeans.inject.InjectableField.doInjection(InjectableField.java:59) at org.apache.webbeans.component.AbstractInjectionTargetBean.injectField(AbstractInjectionTargetBean.java:387) at org.apache.webbeans.component.AbstractInjectionTargetBean.injectSuperFields(AbstractInjectionTargetBean.java:368) at org.apache.webbeans.portable.creation.InjectionTargetProducer.inject(InjectionTargetProducer.java:93) at org.apache.webbeans.component.InjectionTargetWrapper.inject(InjectionTargetWrapper.java:76) at org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:181) at org.apache.webbeans.context.DependentContext.getInstance(DependentContext.java:70) at org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:132) at org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:872) at org.apache.webbeans.inject.instance.InstanceImpl.get(InstanceImpl.java:126)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 7 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    2 more bugmates