0 Replies Latest reply on Mar 25, 2011 12:49 PM by Flávio Henrique

    BeanManager manual lookup returns null Tomcat 7.0

    Flávio Henrique Newbie

      Manual lookup of BeanManager allways returns null.

      In Weld´s tutorial:

      Tomcat only allows you to bind entries to java:comp/env, so the BeanManager will be available at java:comp/

      I followed this advice and had the same problem.

      What I am trying to do is no inject the bean X inside my Exception. Since the exception is create by throws ExceptionX it is not managed by the CDI containner, that´s why I need the beanManager.