title: @Inject field is always null
body: <p>I try to @Inject a field (its a jar module, empty beans.xml is existing under META-INF) like this:</p>
  
  <p>IDataProvider Interface</p>
  
  <pre><code>public interface IDataProvider {
    void test();
  }
  </code></pre>
  
  <p>DataProvider implementation
      import javax.enterprise.context.ApplicationScoped;</p>
  
  <pre><code>@ApplicationScoped
  public class DataProvider implements IDataProvider {
    private int i;
  
    public DataProvider() {
      i = 42;
    }
  
    @Override
    public void test() {
  
    }
  }
  </code></pre>
  
  <p>And the class where i try to inject the DataProvider</p>
  
  <pre><code>import javax.enterprise.context.ApplicationScoped;
  import javax.inject.Inject;
  
  @ApplicationScoped
  public class DataController {
  
    @Inject
    private IDataProvider dataProvider;
  
    private int k;
  
    public DataController() {
       k = 42;
    }
  }
  </code></pre>
  
  <p>If i run this on Wildfly the injected dataProvider is always null (Breakpoint at DataController constructor).</p>
  
  <p>On every tutorial it's done like this, so i thought this should work. Only difference is that both classes should be @ApplicationScoped</p>
  
  <p>I am using Wildfly 8.2Final, Gradle, IntelliJ.
  My gradle.build looks like this:</p>
  
  <pre><code>apply plugin: 'java'
  
  repositories {
    mavenCentral()
    jcenter()
  }
  
  dependencies {
    compile group:'javax', name:'javaee-web-api', version:'7.+'
    compile group:'org.jboss.ejb3', name:'jboss-ejb3-ext-api', version:'2.+'
  }
  
  sourceSets {
    main {
        java {
            srcDir 'src/api/java'
            srcDir 'src/main/java'
        }
    }
  
    test {
        java {
            srcDir 'src/test/java'
        }
    }
  }
  
  jar {
    from ('./src') {
        include 'META-INF/beans.xml'
    }
  }
  </code></pre>
  
  <p>Does anyone have an idea why this is not working? i dont get any error or exception from Wildfly.</p>