You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Craig Blake <cr...@mac.com> on 2007/09/01 18:52:25 UTC

Unable to resolve timer

Hi everyone, I'm new to Geronimo and am having an issue deploying an  
application that works fine on Glassfish.  I have a stateless bean  
that uses a TimerService, as illustrated in this pared down test class:

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

@Stateless
public class SampleBean implements Sample {

	@Resource TimerService timer;

	public void run() {}
}

Glassfish automatically injects a new timer instance without any  
additional configuration necessary, but Geronimo fails with a  
deployment exception as included below.  Does Geronimo not support  
automatic creation of timers or am I missing something obvious?

Thanks,
Craig

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)
.
.
.
.



Re: Unable to resolve timer

Posted by Craig Blake <cr...@mac.com>.
Thanks, opened GERONIMO-3455

Craig
 
On Wednesday, September 05, 2007, at 10:40AM, "Kevan Miller" <ke...@gmail.com> wrote:
>
>On Sep 5, 2007, at 10:03 AM, Craig Blake wrote:
>
>> I sent this to the user list last week but haven't seen a response  
>> - maybe one of you guys knows what's going on?
>>
>> ------
>>
>> Hi everyone, I'm new to Geronimo and am having an issue deploying  
>> an application that works fine on Glassfish.  I have a stateless  
>> bean that uses a TimerService, as illustrated in this pared down  
>> test class:
>>
>> import javax.annotation.Resource;
>> import javax.ejb.Stateless;
>> import javax.ejb.TimerService;
>>
>> @Stateless
>> public class SampleBean implements Sample {
>>
>> 	@Resource TimerService timer;
>>
>> 	public void run() {}
>> }
>>
>> Glassfish automatically injects a new timer instance without any  
>> additional configuration necessary, but Geronimo fails with a  
>> deployment exception as included below.  Does Geronimo not support  
>> automatic creation of timers or am I missing something obvious?
>
>Hi Craig,
>Seems like a bug to me. Could you create a Jira?
>
>--kevan
>
>
>
>
>

Re: Unable to resolve timer

Posted by Kevan Miller <ke...@gmail.com>.
On Sep 5, 2007, at 10:03 AM, Craig Blake wrote:

> I sent this to the user list last week but haven't seen a response  
> - maybe one of you guys knows what's going on?
>
> ------
>
> Hi everyone, I'm new to Geronimo and am having an issue deploying  
> an application that works fine on Glassfish.  I have a stateless  
> bean that uses a TimerService, as illustrated in this pared down  
> test class:
>
> import javax.annotation.Resource;
> import javax.ejb.Stateless;
> import javax.ejb.TimerService;
>
> @Stateless
> public class SampleBean implements Sample {
>
> 	@Resource TimerService timer;
>
> 	public void run() {}
> }
>
> Glassfish automatically injects a new timer instance without any  
> additional configuration necessary, but Geronimo fails with a  
> deployment exception as included below.  Does Geronimo not support  
> automatic creation of timers or am I missing something obvious?

Hi Craig,
Seems like a bug to me. Could you create a Jira?

--kevan




Fwd: Unable to resolve timer

Posted by Craig Blake <cr...@mac.com>.
I sent this to the user list last week but haven't seen a response -  
maybe one of you guys knows what's going on?

------

Hi everyone, I'm new to Geronimo and am having an issue deploying an  
application that works fine on Glassfish.  I have a stateless bean  
that uses a TimerService, as illustrated in this pared down test class:

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

@Stateless
public class SampleBean implements Sample {

	@Resource TimerService timer;

	public void run() {}
}

Glassfish automatically injects a new timer instance without any  
additional configuration necessary, but Geronimo fails with a  
deployment exception as included below.  Does Geronimo not support  
automatic creation of timers or am I missing something obvious?

Thanks,
Craig

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)
.
.
.
.