[jboss-jira] [JBoss JIRA] (WFLY-1675) @Named bean missing from WebInjectionContainer
Stan Silvert (JIRA)
jira-events at lists.jboss.org
Thu Jul 11 10:10:21 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stan Silvert updated WFLY-1675:
-------------------------------
Attachment: FlowHandlerFactoryTest.zip
> @Named bean missing from WebInjectionContainer
> ----------------------------------------------
>
> Key: WFLY-1675
> URL: https://issues.jboss.org/browse/WFLY-1675
> Project: WildFly
> Issue Type: Bug
> Components: CDI / Weld
> Affects Versions: 8.0.0.Alpha2
> Reporter: Stan Silvert
> Assignee: Stuart Douglas
> Attachments: FlowHandlerFactoryTest.zip
>
>
> This TCK test is failing:
> com/sun/ts/tests/jsf/spec/view/protectedview/URLClient.java#viewProtectedViewNonAccessPointTest
> The reason is that the javax.inject.Named annotation is not handled properly. The test contains a bean with these declarations:
> {code}
> @Named
> @ApplicationScoped
> public class FlowHandlerFactoryTestImpl extends FlowHandlerFactoryWrapper {
> @Inject
> private AppBean appBean;
> {code}
> However, the bean is not made available to the WebInjectionContainer by the CDI subsystem. So when the JSFInjectionProvider tries to set up an instance then the class is not found and the @Inject doesn't do its magic.
> If I replace @Named with @ManagedBean then the ManagedBeanAnnotationProcessor in the EE subsystem handles it and the test will pass.
> I've extracted the test WAR into a Maven project for easier testing. See attached.
--
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