[jboss-jira] [JBoss JIRA] Created: (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 May 25 05:44:00 EDT 2011
@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: jaikiran pai
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