2 Replies Latest reply on Feb 22, 2003 1:38 PM by Sergio

    Runing an ejb from real client

    Sergio Newbie

      Hello, I have my client in a windows 2000 machine trying to use an EJB in my linux box all ports are open in my linux box, and I can get to the ejb if I run the client locally.

      in the client I print this out

      System.out.println("Initial Context: "+jndiContext);

      Object ref = jndiContext.lookup("StringProcessor");
      System.out.println("Reference: "+ref);

      System.out.println("Home Interface: "+home);

      This is the message I get when I try to run the client from the windows 2000 box

      C:\WORKPL~1>java Client test
      Input=test
      Initial Context: javax.naming.InitialContext@7ffe01
      Reference: null
      Home Interface: null
      java.lang.NullPointerException

      if I shutdown the server I get this error

      C:\WORKPL~1>java Client test
      Input=test
      Initial Context: javax.naming.InitialContext@7ffe01
      log4j:WARN No appenders could be found for logger (org.jnp.interfaces.NamingCont
      ext).
      log4j:WARN Please initialize the log4j system properly.
      javax.naming.CommunicationException: Receive timed out [Root exception is java.n
      et.SocketTimeoutException: Receive timed out]

      So I know in the first instance at least it is getting some kind of a connection

      Do I need to create some kind of an IIOP listener somewhere or something like that??

      Thanks for any help in advance