You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Craig Blake (JIRA)" <ji...@apache.org> on 2007/09/05 21:09:34 UTC

[jira] Updated: (GERONIMO-3455) Timer resource injection fails

     [ https://issues.apache.org/jira/browse/GERONIMO-3455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Craig Blake updated GERONIMO-3455:
----------------------------------

    Priority: Critical  (was: Major)

> 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
>            Priority: Critical
>
> 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.