It's not a secret anymore!
The moose likes EJB and other Java EE Technologies and the fly likes javax.naming. NameNotFoundException: ... not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "javax.naming. NameNotFoundException: ... not found" Watch "javax.naming. NameNotFoundException: ... not found" New topic

javax.naming. NameNotFoundException: ... not found

Antonio Martel

Joined: Feb 19, 2004
Posts: 6
Hi all,
I have in one application a stateless ejb called ManagerAgencias which manage an Entity Bean. I use it with a Delegate/ServiceLocator without any problems in this application. But I am trying to call this ManagerAgencias from another app. I have included the necessary jar files but I get this runtime error:
04/02/19 10:15:37 javax.naming.NameNotFoundException: ManagerAgencias not found
04/02/19 10:15:37 at com.grancanaria.j2ee.util.exception.ServiceLocatorException.<init>(
04/02/19 10:15:37 at com.grancanaria.j2ee.util.server.ServiceLocator.getRemoteHome(
04/02/19 10:15:37 at GIAEA.model.agencias.DelegateAgencias.<init>(
I try to use the delegate in a DoEndTag method of a custom tag class:
public int doEndTag() throws JspTagException
Collection collection = null;
ListaAgenciasLocalDTO listaAgenciasLocalDTO = null;
DelegateAgencias delegate = new DelegateAgencias();

I get the error in this last line. -^
I copy here now the DelegateAgencias constructor:
public DelegateAgencias()
manager = (ManagerAgenciasHome) ServiceLocator.getInstance().getRemoteHome(IServiceLocator.MANAGER_AGENCIAS_JNDI,ManagerAgenciasHome.class);
catch (ServiceLocatorException e)

I work with Jdeveloper/Oc4j. Does anyone know why it works in the first app but not in the second one? Am i missing something? Do I need to include something?
Thanks in advance.
I agree. Here's the link:
subject: javax.naming. NameNotFoundException: ... not found
It's not a secret anymore!