Injection errors deploying an EAR
Issue
-
Deploying an ear, we have injection errors
Suppressed: org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type HttpServletRequest with qualifiers @Default at injection point [BackedAnnotatedParameter] Parameter 3 of [BackedAnnotatedMethod] @Produces @Named public com.mycompany.MyProducer.producermethod(param1, param2, HttpServletRequest) at com.mycompany.MyProducer.producermethod(MyProducer.java:46) Possible dependencies: - Producer Method [HttpServletRequest] with qualifiers [@Default @Named @Any] declared as [[BackedAnnotatedMethod] @Produces @Named private com.mycompany.MyWebListener.HttpListenerProducer.get()], - WELD%AbstractBuiltInBean%myear.ear/myWeb.war/WEB-INF/classes%HttpServletRequest
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.1.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
