[jboss-jira] [JBoss JIRA] (WFLY-2762) Injection of application-provided CDI bean into extension-provided bean fails

Gunnar Morling (JIRA) issues at jboss.org
Thu Jan 16 05:36:32 EST 2014


    [ https://issues.jboss.org/browse/WFLY-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12936236#comment-12936236 ] 

Gunnar Morling commented on WFLY-2762:
--------------------------------------

Some more things which may be helpful:

* The PE lives [here|https://github.com/hibernate/hibernate-validator/tree/master/cdi] (contains {{ValidationExtension}}, {{ValidationInterceptor}} etc.)
* When executing the test via Maven, WF 8.0.0.CR1 will be extracted into the target directory, and the module for HV and the PE will be updated with the current snapshot version
                
> 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
>
> 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