4 Replies Latest reply on Aug 13, 2009 11:31 PM by Pete Muir

    ContextNotActiveException for @Dependent Bean lookup over HTTP

    Nirav Shah Newbie

      Hello!


      Am trying to programatically lookup a Web Beans with a @Dependent Scope.
      When I do this in a SE environment, the lookup works.
      But when I try to run the exact same code over a HTTP web service, the lookup fails with
      javax.context.ContextNotActiveException: No active contexts for scope type javax.context.Dependent


      Is the @Dependent scope not visible over HTTP?
      If not, how else can I look this Bean up (am unable to make it of a normal scope cause of UnproxyableDependencyException due to inheritance of a legacy class with final methods!)?



      Thanks!
      Nirav