0 Replies Latest reply on Jan 12, 2012 11:09 AM by Karsten Wutzke

    Seam 3 Security: Custom authenticator warning on @Inject

    Karsten Wutzke Expert

      Hello,


      sorry for the double post from the Seam 3 forum. It's probably better off here.


      I have the following custom authenticator:




      public class CustomAuthenticator extends BaseAuthenticator implements Authenticator, Serializable
      {
          @Inject
          private IdentitySession identitySession;
           
          @Inject
          private Credentials credentials;
           
          ...
      }





      On both @Inject Eclipse warns me about:



      No bean is eligible for injection to the injection point (JSR-299 §5.2.1)

      Is it Eclipse again warning me unnecessarily or is it really bad code? Note, that I only copied this from the IdmAuthenticator class...


      Thanks


      Karsten