This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.naming. NameNotFoundException: ... not found  RSS feed

Antonio Martel
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!