This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Antonio Martel
Greenhorn
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>(ServiceLocatorException.java:20)
04/02/19 10:15:37 at com.grancanaria.j2ee.util.server.ServiceLocator.getRemoteHome(ServiceLocator.java:97)
04/02/19 10:15:37 at GIAEA.model.agencias.DelegateAgencias.<init>(DelegateAgencias.java:20)
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()
{
try
{
manager = (ManagerAgenciasHome) ServiceLocator.getInstance().getRemoteHome(IServiceLocator.MANAGER_AGENCIAS_JNDI,ManagerAgenciasHome.class);
}
catch (ServiceLocatorException e)
{
e.printStackTrace();
}
}

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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!