[jboss-jira] [JBoss JIRA] Assigned: (AS7-896) @Resource of type enum fail with "Can't handle @Resource for ENC name"

jaikiran pai (JIRA) jira-events at lists.jboss.org
Wed Jun 1 03:48:01 EDT 2011


     [ https://issues.jboss.org/browse/AS7-896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jaikiran pai reassigned AS7-896:
--------------------------------

    Assignee: Stuart Douglas  (was: jaikiran pai)


Stuart has fixed this in his branch. Needs to be merged upstream.


> @Resource of type enum fail with "Can't handle @Resource for ENC name"
> ----------------------------------------------------------------------
>
>                 Key: AS7-896
>                 URL: https://issues.jboss.org/browse/AS7-896
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EE
>            Reporter: jaikiran pai
>            Assignee: Stuart Douglas
>
> A @Resource on a enum type field leads to:
> {code}
> Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Can't handle @Resource for ENC name: timeUnit since it's missing a lookup value and isn't of any known type
> 	at org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor.process(ResourceInjectionAnnotationParsingProcessor.java:216)
> 	at org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor.processMethodResource(ResourceInjectionAnnotationParsingProcessor.java:173)
> 	at org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor.deploy(ResourceInjectionAnnotationParsingProcessor.java:124)
> 	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT]
> 	... 4 more
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list