Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 86972 invoked from network); 23 Oct 2007 21:20:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Oct 2007 21:20:43 -0000 Received: (qmail 74952 invoked by uid 500); 23 Oct 2007 21:20:30 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 74419 invoked by uid 500); 23 Oct 2007 21:20:29 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 74404 invoked by uid 99); 23 Oct 2007 21:20:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 14:20:29 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 21:20:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D234471422E for ; Tue, 23 Oct 2007 14:19:50 -0700 (PDT) Message-ID: <21582983.1193174390858.JavaMail.jira@brutus> Date: Tue, 23 Oct 2007 14:19:50 -0700 (PDT) From: "Jarek Gawor (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Assigned: (GERONIMO-3455) Timer resource injection fails In-Reply-To: <29569840.1189016014450.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-3455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jarek Gawor reassigned GERONIMO-3455: ------------------------------------- Assignee: Jarek Gawor > 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 > Assignee: Jarek Gawor > 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() > 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() > 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.