CDI injection fails (is null) in a war when the ear contains more than one war file. The CDI succeeds/fails based on which war gets deployed first. If the any of the failed war is deployed alone, it succeeds.
This issue does not happen in jboss AS 7 or EAP 6