1 Reply Latest reply on Oct 23, 2002 6:04 PM by adrian.brock

    javax.naming.NoInitialContextException

    nickcresswell

      Hello,

      As a veritable newby to EJBs I'm attempting to run my first client application. It follows the Titan shipping example in Richard Monson-Haefel's book published by O'Rielly. I have successfully deployed a session bean that I'm calling up within my client. I have successfully compiled my client on the machine on wich it runs and I'm running it using the same class path(s). When I run it, I get the following error:

      "javax.naming.NoInitialContextException: Need to specify class name in environmen
      t or system property, or as an applet parameter, or in an application resource f
      ile:"

      Seems to point to the following line of code:

      Object ref = jndiContext.lookup("TravelAgentHomeRemote");

      Any help would be greatly appreciated. Thanks, NICK