2 Replies Latest reply on May 8, 2003 7:00 PM by vman

    Mac OS X context lookup problem

    vman

      Hi everyone,

      I have a strange problem with an application client being run on Mac OS X. The application client jar I'm using runs perfectly fine on Linux and Win2000 (using j2sdk1.4.1_02), but it refuses to start up in Mac.
      At first I thought it was due to some authentication problem, but that's not the case, as it correctly picks up changes I've made in the database for the database login module.
      This bit is fine
      Context initial = new InitialContext();
      but on this bit OS X gets its knickers in a twist
      Object objref = initial.lookup("MyBean");

      It appearantly times out, the message is 'Receive timed out', although the "wait period" is approx. 3 seconds. (Rather short to cause a timeout in my book...)

      Is there a known issue with Apple's Java version for application clients, etc. ?

      Thanks for any help.

      Regards,

      Volkmar

        • 1. Re: Mac OS X context lookup problem

          You have a problem with jndi.properties.

          It failed to connect to the server.

          The timeout is a udp broadcast for any servers
          running HAJNDI.

          Regards,
          Adrian

          • 2. Re: Mac OS X context lookup problem
            vman

            Adrian,

            Indeed it is a jndi problem...
            I fixed it by merely taking the parameters from the jndi.properties file and moving them onto the command line executed from within run-client.sh.
            (with -Djava.bla.bla.bla)
            Works like a charm :o)

            Thanks for your input !

            Regards,

            Volkmar