]
Jason Greene commented on WFLY-2762:
------------------------------------
Awesome. So whats the next steps on this?
Injection of application-provided CDI bean into extension-provided
bean fails
-----------------------------------------------------------------------------
Key: WFLY-2762
URL:
https://issues.jboss.org/browse/WFLY-2762
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: CDI / Weld
Affects Versions: 8.0.0.CR1
Reporter: Gunnar Morling
Assignee: Jozef Hartinger
Priority: Blocker
Fix For: 8.0.0.Final
When an application provides a CDI bean, injection of this bean into another bean
provided by a portable extension (which is attached to this application) fails.
The specific use case is the PE for Hibernate Validator which contains a class
{{ValidationInterceptor}} with an injection point of type {{j.v.Validator}}. If the
application happens to provide a producer for that type, deployment of the application
fails with the following error message:
{quote}
WELD-001408: Unsatisfied dependencies for type Validator with qualifiers @Default
at injection point \[UnbackedAnnotatedField\] @Inject private
org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor.validator
{quote}
A test case can be found
[
here|https://github.com/gunnarmorling/hibernate-validator/tree/injection-...]. To
execute it, pull that branch and run:
{code}
mvn clean install -pl integration -Dit.test=InjectionIssueIT
{code}
The deployment of that Arquillian test fails with the error above.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: