org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type MyController with qualifiers @Default at injection point [BackedAnnotatedField] @Inject private fr.perso.tutorial.cdiunit.controller.UUD.myController

Stack Overflow | cenote | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Unit test : Produce mock for the unit under test in a parent test class

    Stack Overflow | 6 months ago | cenote
    org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type MyController with qualifiers @Default at injection point [BackedAnnotatedField] @Inject private fr.perso.tutorial.cdiunit.controller.UUD.myController

    Root Cause Analysis

    1. org.jboss.weld.exceptions.DeploymentException

      WELD-001409: Ambiguous dependencies for type MyController with qualifiers @Default at injection point [BackedAnnotatedField] @Inject private fr.perso.tutorial.cdiunit.controller.UUD.myController

      at fr.perso.tutorial.cdiunit.controller.UUD.myController()
    2. fr.perso.tutorial
      UUD.myController
      1. fr.perso.tutorial.cdiunit.controller.UUD.myController(UUD.java:0)
      1 frame