1 Reply Latest reply on Jan 24, 2003 5:39 PM by adrian.brock

    java/jsp client calling a EJB which is running in Linux (Jbo

    ulags

      I am facing some problem when java/jsp client calling an EJB(stateless Bean) which is running on Linux machine...Jboss3.0 version.

      actually I am getting (null) home reference.(NullPointerException).

      The same cleint is working fine if I run the client in the server JVM itself...

      The same EJB and client is working fine if the Jboss is running in window2000 machine.

      This happens only in Linux machine.

      here I am giving piece of my client code.

      Hashtable env = new Hashtable();
      env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      env.put(Context.PROVIDER_URL, "jnp://168.94.112.67:1099/");
      env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces" );
      env.put("jnp.SocketFactory","org.jnp.interfaces.TimedSocketFactory");
      InitialContext ctx = new InitialContext(env);

      OrderConfiguratorHome ref = (OrderConfiguratorHome) ctx.lookup ("ejb/OrderConfiguratorEJB");
      //here I am getting NullPointerException.
      OrderConfigurator remote = ref.create();