title: WELD-001456 Argument bean must not be null
body: <p>I got this exception <code>Caused by: org.jboss.weld.exceptions.IllegalArgumentException: WELD-001456 Argument "resolvedBean" must not be null</code> and found the following on the web <a href="https://issues.jboss.org/browse/WELD-1387" rel="nofollow">here</a>:  </p>
  
  <blockquote>
    <p>This is an ordering issue in GlassFish. What happens is that the loadFlows() method of <a href="http://java.net/projects/mojarra/sources/svn/content/trunk/jsf-ri/src/main/java/com/sun/faces/application/ApplicationAssociate.java" rel="nofollow">http://java.net/projects/mojarra/sources/svn/content/trunk/jsf-ri/src/main/java/com/sun/faces/application/ApplicationAssociate.java</a></p>
  </blockquote>
  
  <p>is being invoked before WeldBootstrap.endInitialization() has finished. It is necessary to fully initialize Weld before invoking producers (which loadFlows() does).</p>
  
  <p>What is that ordering issue? I mean which libraries need to be on top and load earlier?
  I build a jsf 2.2 web application with glassfish 4.0.</p>