title: Stateless EJB implements interface injection failed
body: <p>Wildfly 8.2.0</p>
  
  <p>I have a <code>Stateless</code> EJB and an interface.</p>
  
  <pre><code>@Local
  @Stateless
  public class Bean implements IBean{
  ...
  }
  
  @Local
  public interface IBean {
  ...
  }
  </code></pre>
  
  <p>But I get a WELD Error. If Bean doesn't implement the interface there is no errors. According to  <a href="https://stackoverflow.com/a/13988450/2023524">https://stackoverflow.com/a/13988450/2023524</a>
  and <a href="https://blogs.oracle.com/arungupta/entry/what_s_new_in_ejb" rel="nofollow noreferrer">https://blogs.oracle.com/arungupta/entry/what_s_new_in_ejb</a> there should be no error.</p>
  
  <p>Error: </p>
  
  <pre><code>WELD-001408: Unsatisfied dependencies for type Bean with qualifiers @Default
    at injection point [BackedAnnotatedField] @Inject private mypackage.anotherBean.bean
  </code></pre>
  
  <p><strong>Update</strong>: 
  I've tried all possible combinations with <code>Local</code> but it doesn't help. Only if interface is removed there is no error. </p>
  
  <pre><code>@Stateless
  public class Bean implements IBean{
  ...
  }
  
  @Local
  public interface IBean {
  ...
  }
  
  //*****************************
  @Stateless
  public class Bean implements IBean{
  ...
  }
  
  public interface IBean {
  ...
  }
  //************************************
  @Local
  @Stateless
  public class Bean implements IBean{
  ...
  }
  
  public interface IBean {
  ...
  }
  </code></pre>