1 Reply Latest reply on Jul 14, 2008 5:54 PM by Sebastien Degardin

    Calling EJB3 bean from another host, fail

    Armen Arzumanyan Newbie


      In one computer ejb3 appl with web client working fine but when I put client on the another host I got following errors ->

      5:58:55,453 ERROR [STDERR] javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
      15:58:55,453 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:780)
      15:58:55,453 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
      15:58:55,843 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)

      Here is my lookup

      Hashtable environment = new Hashtable();
      environment.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      environment.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
      environment.put(Context.PROVIDER_URL, "jnp://some_IP:1099");
      InitialContext context = new InitialContext(environment);
      BeanRemote bean = (BeanRemote) context.lookup("ejb/MyBean/remote");


      I use JBoss 4.2.2, What is the problem?