[jboss-jira] [JBoss JIRA] (WFLY-2762) Injection of application-provided CDI bean into extension-provided bean fails
Jozef Hartinger (JIRA)
issues at jboss.org
Tue Jan 28 16:23:29 EST 2014
[ https://issues.jboss.org/browse/WFLY-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12939416#comment-12939416 ]
Jozef Hartinger commented on WFLY-2762:
---------------------------------------
PR sent
> 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-issue-test]. 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: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list