2 Replies Latest reply on May 19, 2002 11:14 AM by fabrice armisen

    Interest EJB Example

    Roger Ball Newbie

      I am running the Interest EJB in JBoss 2.4.4 on Windows XP. I am able to run the ant intro-interest-client script – at http://www.jboss.org/online-manual/HTML/ch01s15.html and get the correct results. Yet when I run my own client I get the following error even though the look up name is the same. I am not clear on what environment, system property or application resource is missing. Need help!

      Caught an lookup exception!
      javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
      at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
      at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
      at javax.naming.InitialContext.lookup(Unknown Source)
      at InterestClient.main(InterestClient.java:22)

      Thanks