0 Replies Latest reply on Apr 18, 2002 5:23 AM by nickbuus

    ear file

    nickbuus Newbie

      In jboss alpha release I made a lookup to my ejb's in the following way whick worked fine:

      Properties props = new Properties();
      props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      props.put(Context.PROVIDER_URL, "localhost:1099");

      Context ctx = new InitialContext(props);

      I am trying the same with the jboss 3 RC1 and I have packaged the files into an ear file. It deploys without errors, but when I try to call the beans from within an jsp file as before, I get the following error:

      java.rmi.ServerException: null; nested exception is:
      java.lang.NullPointerException
      java.lang.NullPointerException


      I reckon that the problem has to do with the localhost:1099 lookup name???