[jboss-jira] [JBoss JIRA] Resolved: (AS7-896) @Resource of type enum fail with "Can't handle @Resource for ENC name"
Stuart Douglas (JIRA)
jira-events at lists.jboss.org
Mon Jun 6 18:07:59 EDT 2011
[ https://issues.jboss.org/browse/AS7-896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart Douglas resolved AS7-896.
--------------------------------
Resolution: Done
> @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