title: @EJB Injection fails in a singleton for a bean with no interface view
body: <p>I have a stateless DAO-EJB with a no interface view, which is inherited from a generic abstract DAO class with an additional method <code>readAll();</code> So the tree is <code>FooDAOBean &lt;- extends GenericDAOImpl &lt;- implements GenericDAOInterface</code>  (<a href="https://stackoverflow.com/questions/3888575/single-dao-generic-crud-methods-jpa-hibernate-spring">click here to see GenericDAO implementation</a> - in the link it isn't an abstract class):</p>
  
  <pre><code>@Stateless
  public class FooDAOBean extends GenericDAOImpl&lt;ENodeFocus, Serializable&gt;{
  
      @Override   
      public List&lt;Foo&gt; readAll() {
          // do something...
      }
  }
  </code></pre>
  
  <p>and i have an initialization bean, which should configure the application with some entries:</p>
  
  <pre><code>@Singleton
  @Startup
  public class InitializationBean {
  
      @EJB
      FooDAOBean dao;
  
      @PostConstruct
      public void initialize() {
        // do something
      }
  }
  </code></pre>
  
  <p>On deploying i'm getting the errors: </p>
  
  <blockquote>
    <p>WFLYNAM0059: Resource lookup for injection failed:
    env/shitstorm.beans.InitializationBean/dao</p>
    
    <p>WFLYEE0046: Failed to instantiate component view</p>
  </blockquote>
  
  <p>When i implement a remote interface and annotate <code>FooDAOBean</code> with <code>@Remote(&lt;RemoteInterface&gt;.class)</code> it is working correctly. But i don't want to allow remote access. For me it is important, that <code>FooDAOBean</code>'s methods are only accessible in the same JVM (local). <code>FooDAOBean</code> and <code>InitializationBean</code> are in the same EAR-Project, so it should be work or do i miss something here? Has it to do with the singleton or whats happening here? Do i have to implement a local interface? I thought since EJB 3.0 i don't need it anymore. Thanks a lot! :)</p>