Deploy WAR before AS is started:
Workaround (deploy before AS is started):
1.) Get the reproducer from git://github.com/pmacik/jaxrs-cdi-reproducer.git
2.) Get out-of-the-box JBoss AS7 (7.1.1.Final)
3.) Build the reproducer WAR using "mvn package"
4.) Deploy the reproducer WAR - copy the WAR into (JBOSS_HOME)/standalone/deployments directory
5.) Start the AS up
6.) Go to http://localhost:8080/JAXRS-CDI-reproducer/rest/bean/getAll -> empty collection XML is returned (bean was injected properly))
7.) Go to http://localhost:8080/JAXRS-CDI-reproducer/BeanServlet -> the bean is properly injected