0 Replies Latest reply on Apr 16, 2002 2:32 PM by matias_salvador

    URGENT: "lookupLocally failed for"

    matias_salvador

      Anytime I create a new Bean, I configure it's directory JNDI in jboss.xml and when in the client, i look it up with the same name.

      The deploy goes well, but when I try to run it for the first time, it throws me the following error in the SERVER:

      15:10:12,828 ERROR [HAJNDI] lookupLocally failed for hello/src/Hello
      javax.naming.NameNotFoundException: hello not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
      at org.jboss.ha.jndi.HAJNDI.lookupLocally(HAJNDI.java:230)
      at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:174)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ha.framework.server.HARMIServerImpl.invoke(HARMIServerImpl.
      java:158)
      at java.lang.reflect.Method.invoke(Native Method)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      at sun.rmi.transport.Transport$1.run(Transport.java:152)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
      65)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
      .java:706)
      at java.lang.Thread.run(Thread.java:484)

      If i then change the directory names in the server (XML) and in the client, it makes some kind of refresh and works... what is the problem with JBOSS? AM I MISSING ANYTHING? Do I have to declare this directory in other place?

      Thank you very much and look forward for any answer ASAP.