title: No bean is eligible for injection to the injection point [JSR-299 §5.2.1]
body: <p>I wanted to inject the default Java logger. However, Eclipse underlines it and states "No bean is eligible for injection to the injection point [JSR-299 §5.2.1]"</p>
  
  <p>If I deploy anyway, the following exception is thrown. Why does it fail to inject Java Logger? Same for the EntityManager, but not for my own UserRepository Bean.</p>
  
  <pre><code>org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [Logger] with qualifiers [@Default] at injection point [[field] 
  </code></pre>
  
  <p>code:</p>
  
  <pre><code>import java.util.logging.Logger;
  
  import javax.ejb.Stateless;
  import javax.enterprise.event.Event;
  import javax.inject.Inject;
  import javax.persistence.EntityManager;
  
  import com.terry.webapp.data.UserRepository;
  import com.terry.webapp.model.usermgmt.User;
  
  
  // The @Stateless annotation eliminates the need for manual transaction demarcation
  @Stateless
  public class LoginService {
  
      @Inject
      private Logger log;
  
      @Inject
      private EntityManager em;
  
      @Inject
      private UserRepository repository;
  
      public User login(User user) {
          log.info("login " + user.getUsername());
  
          User rUser = repository.findByCredentials(user.getUsername(), user.getPassword());
          return rUser;
      }
  }
  </code></pre>