1 Reply Latest reply on May 28, 2013 9:58 AM by Martin Kouba

    How to solve  Ambiguous dependencies in CDI?

    Roshan Mutha Newbie

      I am getting following error when i added produces which returns the injected member from same class.

       

      org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [IUserHolder] with qualifiers [@Default] at injection point [[field] @Inject com.morpho.im.web.components.recordList.RecordListManager.userHolder]. Possible dependencies [[Managed Bean [class com.morpho.im.web.components.login.UserHolder] with qualifiers [@Any @Default @Named], Producer Method [IUserHolder] with qualifiers [@Any @Default] declared as [[method] @Produces public com.morpho.im.web.application.login.SecurityManager.getUserHolder()]]]

       

      Any hints welcome to solve this issue !