geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Lindback <>
Subject About lookup ejb deployed separate from a servlet
Date Sat, 15 Jul 2006 07:04:28 GMT
I am evaluating geronimo-1.1. I have tested all
bean-types and run them with standalone clients and it
works great. No problem.

Now I am trying to access a bean from a servlet.
I am deploying the beans as a separate jar and the web
part is in its own war just to simulate some parts of
a real application.
I don't seem to be able to successfully configure the

The servlet code:
  InitialContext ctx = new InitialContext();
  Object o = ctx.lookup(
  UserFacadeHome home = (UserFacadeHome) 
     o, UserFacadeHome.class);
  UserFacade remote = home.create();


      <!--    the ejb jar file      -->


In geronimo-web.xml for the ejb-ref I have tried
almost all combinations already. 

The lookup in the servlet generates:
javax.naming.NameNotFoundException: Could not resolve
abstract name query [teel/
penejb.EJBContainer] in configuration

Can anyone see what is wrong? Thanks in advance.

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

View raw message