DeploymentException Ambigous dependency problem in JBoss EAP 7.x application

Solution Verified - Updated -

Issue

Ambiguous dependencies using annotation @Default, as in:

    Suppressed: org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type HttpSession with qualifiers @Default
  at injection point [BackedAnnotatedField] @Inject private example.session
  at example.session(ValidateDeviceInterceptor.java:0)
  Possible dependencies: 
  - Producer Method [HttpSession] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @RequestScoped protected example.getSession()],
  - WELD%AbstractBuiltInBean%example.ear/lib/example.jar%HttpSession

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content