geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Blake (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-3455) Timer resource injection fails
Date Wed, 05 Sep 2007 18:13:34 GMT
Timer resource injection fails
------------------------------

                 Key: GERONIMO-3455
                 URL: https://issues.apache.org/jira/browse/GERONIMO-3455
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
    Affects Versions: 2.0.1
         Environment: OS X 10.4.9, Java 1.5.0_07
            Reporter: Craig Blake


Using a Resource annotation to inject a TImerService instance fails in Geronimo 2.0.1 using
the following sample code:

import javax.annotation.Resource;
import javax.ejb.Stateless;
import javax.ejb.TimerService;

@Stateless
public class SampleBean implements Sample {

	@Resource TimerService timer;

	public void run() {}
}

12:31:28,675 ERROR [Deployer] Deployment failed due to
org.apache.geronimo.common.DeploymentException: Unable to resolve resource reference 'SampleBean/timer'
(Could not auto-map to resource.  Try adding a resource-ref mapping to your Geronimo deployment
plan.
Search conducted in current module and dependencies:
[ALL: org.apache.geronimo.configs/openejb//car]
[ALL: org.apache.geronimo.configs/system-database//car]
[ALL: org.apache.geronimo.configs/tomcat6//car]
[ALL: org.apache.openejb/openejb-core//jar]
[ALL: org.apache.geronimo.modules/geronimo-openejb//jar]
[ALL: org.apache.geronimo.configs/openjpa//car]
[ALL: org.apache.geronimo.configs/j2ee-corba-yoko//car]
[ALL: org.apache.geronimo.configs/axis//car]
[ALL: org.apache.geronimo.configs/axis2//car]
)
        at org.apache.geronimo.connector.deployment.ResourceRefBuilder.buildNaming(ResourceRefBuilder.java:202)
        at org.apache.geronimo.connector.deployment.ResourceRefBuilder$$FastClassByCGLIB$$71dbb49e.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at org.apache.geronimo.naming.deployment.ResourceEnvironmentSetter$$EnhancerByCGLIB$$a17d2cf4.buildNaming(<generated>)
        at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53)
.
.
.
.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message