Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 83955 invoked from network); 8 Jun 2007 21:08:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jun 2007 21:08:56 -0000 Received: (qmail 23518 invoked by uid 500); 8 Jun 2007 21:08:53 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 23447 invoked by uid 500); 8 Jun 2007 21:08:53 -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 22870 invoked by uid 99); 8 Jun 2007 21:08:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2007 14:08:50 -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; Fri, 08 Jun 2007 14:08:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 58AA97141FD for ; Fri, 8 Jun 2007 14:08:26 -0700 (PDT) Message-ID: <22898805.1181336906361.JavaMail.jira@brutus> Date: Fri, 8 Jun 2007 14:08:26 -0700 (PDT) From: "Aman Nanner (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-3233) Local EJB references cannot be resolved when is set in web application In-Reply-To: <29404201.1181336905955.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-3233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aman Nanner updated GERONIMO-3233: ---------------------------------- Attachment: ejb-reference-fails.ear.zip Here is a sample EAR file that can be deployed on Geronimo that demonstrates the problem. Access the "index.jsp" to reproduce the issue. > Local EJB references cannot be resolved when is set in web application > --------------------------------------------------------------------------------------------- > > Key: GERONIMO-3233 > URL: https://issues.apache.org/jira/browse/GERONIMO-3233 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Affects Versions: 2.0-M6 > Environment: Windows XP SP2 > Reporter: Aman Nanner > Priority: Critical > Attachments: ejb-reference-fails.ear.zip > > > It seems that setting the {{}} element in the geronimo-web.xml for a web application causes Local EJB references to fail when looked up. This is because a new SystemInstance is created via a different classloader, and the existing SystemInstance singleton is not used. Here is a stack trace of the error: > {code} > 15:46:49,877 WARN [EjbFactory] Unable to lookup up EJB by reference name > 'ejb/common/SequenceGenerator'; you must define the EJB reference > javax.naming.NamingException: Could not look up : > ejb/common/SequenceGenerator [Root exception is > java.lang.NullPointerException] > at org.apache.xbean.naming.context.ContextUtil.resolve( > ContextUtil.java:65) > at org.apache.xbean.naming.context.AbstractContext.lookup( > AbstractContext.java:112) > at org.apache.xbean.naming.context.AbstractContext.lookup( > AbstractContext.java:611) > at org.apache.xbean.naming.context.AbstractContext.lookup( > AbstractContext.java:152) > at org.apache.xbean.naming.context.AbstractContext.lookup( > AbstractContext.java:611) > at org.apache.xbean.naming.context.AbstractContext.lookup( > AbstractContext.java:152) > at org.apache.xbean.naming.context.AbstractContext.lookup( > AbstractContext.java:597) > at javax.naming.InitialContext.lookup(InitialContext.java:351) > ..... > at org.apache.catalina.core.StandardEngineValve.invoke( > StandardEngineValve.java:109) > at org.apache.catalina.valves.AccessLogValve.invoke( > AccessLogValve.java:563) > at org.apache.catalina.connector.CoyoteAdapter.service( > CoyoteAdapter.java:261) > at org.apache.coyote.http11.Http11Processor.process( > Http11Processor.java:844) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( > Http11Protocol.java:581) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( > JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.NullPointerException > at org.apache.openejb.core.ivm.naming.IntraVmJndiReference.getObject( > IntraVmJndiReference.java:38) > at org.apache.openejb.core.ivm.naming.Reference.getContent( > Reference.java:40) > at org.apache.xbean.naming.context.ContextUtil.resolve( > ContextUtil.java:61) > ... 50 more > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.