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/
env/BeanManager
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.