title: How to resolve an ambiguous dependency?
body: <p>I have a ambiguous dependency in my group project. I don't want to reveal the code, because I'm not sure if I'm allowed to show it. That's why I want to give a abstract form where the problem is:</p>
  <pre><code>@ShiroSecured
  @RequiresRoles({Role.ADMIN})
  @Named
  @RequestScoped
  public class A{
  
      @Inject
      protected AbstractBean abstractBean; &lt;-- Intellij shows me here 'Ambiguous dependency'
  }
  
  
  @Named
  @ViewScoped
  public class B extends A implements Serializable {
  }
  
  @Named
  @ViewScoped
  public class C extends A implements Serializable {
  }
  </code></pre>
  <p>I kind of understand what the problem is, but I don't know how to fix it. I researched and there was something with deleting a <code>beans.xml</code> or using qualifiers?</p>