javax.enterprise.context.ContextNotActiveException: No active contexts for scope type javax.enterprise.context.RequestScoped

Oracle Community | cosmic | 7 years 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

    Glassfishv3 j_security_check causes No active contexts errors

    Oracle Community | 7 years ago | cosmic
    javax.enterprise.context.ContextNotActiveException: No active contexts for scope type javax.enterprise.context.RequestScoped

    Root Cause Analysis

    1. javax.enterprise.context.ContextNotActiveException

      No active contexts for scope type javax.enterprise.context.RequestScoped

      at org.jboss.weld.BeanManagerImpl.getContext()
    2. Weld Implementation
      WeldPhaseListener.beforePhase
      1. org.jboss.weld.BeanManagerImpl.getContext(BeanManagerImpl.java:928)
      2. org.jboss.weld.bean.proxy.ClientProxyMethodHandler.getProxiedInstance(ClientProxyMethodHandler.java:140)
      3. org.jboss.weld.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:101)
      4. org.jboss.weld.servlet.HttpSessionManager_$$_javassist_14.setSession(HttpSessionManager_$$_javassist_14.java)
      5. org.jboss.weld.jsf.WeldPhaseListener.initiateSessionAndConversation(WeldPhaseListener.java:169)
      6. org.jboss.weld.jsf.WeldPhaseListener.beforeRestoreView(WeldPhaseListener.java:118)
      7. org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:87)
      7 frames
    3. JSF
      LifecycleImpl.execute
      1. com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
      2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
      3. com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
      4. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      4 frames
    4. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      1 frame
    5. Glassfish Core
      FormAuthenticator.authenticate
      1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1518)
      2. org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:784)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:479)
      5. org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:450)
      6. org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:346)
      7. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:296)
      8. org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:458)
      9. org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:249)
      9 frames
    6. Security
      RealmAdapter.invokeAuthenticateDelegate
      1. com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1184)
      1 frame
    7. Glassfish Core
      StandardPipeline.invoke
      1. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
      2. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:604)
      2 frames
    8. Glassfish
      WebPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
      1 frame