2 Replies Latest reply on Apr 5, 2011 3:32 AM by Heiko Tappe

    Conversation and request context in application startup

    Heiko Tappe Newbie

      I would like to initialize my app (especially prefill the database) via AfterDeploymentValidation event. But it looks like I can't use any ConversionScoped or RequestScoped beans for this. I do run into exceptions like


      org.jboss.weld.context.ContextNotActiveException:
      WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped


      or


      org.jboss.weld.context.ContextNotActiveException:
      WELD-001303 No active contexts for scope type javax.enterprise.context.ConversationScoped


      Any idea what to do?


      --Heiko