One problem is that you are looking up JNDI_NAME = HelloWorld rather than COMP_NAME=java:comp/env/ejb/HelloWorld

If you really want you can make this work by passing the openejb proprietary naming properties into the new InitialContext() but it will no longer be a j2ee app.

david jencks

On Feb 15, 2006, at 12:39 PM, Sachin Patel wrote:

Ok this is bugging me now.  I've posted the 2 modules here... (both containing source)

A free 6 pack of beer to anyone who can figure out whats wrong with my lookup :)

- sachin

On Feb 15, 2006, at 2:39 PM, Sachin Patel wrote:

and yes, TestEJB/TestEJB is the configID of the ejb module.  

- sachin

On Feb 15, 2006, at 2:27 PM, David Jencks wrote:

I doubt the <module>TestEJB/TestEJB</module> is correct.  Is this really the J2EEModule key of the ejb's object name?  I always end up looking in geronimo.log for the correct name.  You might try <module>*</module>

We are planning to make this easier in the configid branch so you only have to specify the <name>HelloWorld</name> part.

david jencks

On Feb 15, 2006, at 11:09 AM, Sachin Patel wrote:

Ok, I know I'm missing something but can't seem to find what... I've deployed a standalone ejbjar and standalone war that contains and ejbref.  When launching the servlet the lookup to my ejb fails...

javax.naming.NameNotFoundException: HelloWorld
at com.sun.jndi.rmi.registry.RegistryContext.lookup(
at com.sun.jndi.rmi.registry.RegistryContext.lookup(
at javax.naming.InitialContext.lookup(

What am I missing??????

In my openejb-jar.xml I have:


In my web.xml I have:


In my geronimo-web.xml I have:



- sachin