0 Replies Latest reply on May 8, 2018 3:23 PM by Sana Korejo

    Unsatisfied dependencies with qualifiers @Default

    Sana Korejo Newbie

      I have created authenticator class using following code.  I am getting DeploymentException: WELD-001408: Unsatisfied dependencies for type SimpleAuthenticator with qualifiers @Default

       

      @ Named

      @RequestScope

      @PicketLink

       

      public class SimpleAuthenticator extends BaseAuthenticator {

      ..

           public void authenticate() {

                ...

           }

           public void postAuthenticate() {

                          ....

                }

      }

       

      @ Named

      @SessionScope

       

      public class CompanyBean implements Serializable {

      ...

      @Inject SimpleAuthenticator sa;

      ...

      }

       

      Exception:

       

      DeploymentException: WELD-001408: Unsatisfied dependencies for type SimpleAuthenticator with qualifiers @Default

      at injection point [BackAnnotatedField] @Inject my.package.CompanyBean.sa

      my.package.CompanyBean.sa(CompanyBean:java:0)

      WELD-001475: The following beans match by type, but none have matching qualifiers:

      - Managed Bean  [class my.package.SimpleAuthenticator] with qualifiers [@PicketLink, @Any, @Named]