1 Reply Latest reply on Jan 26, 2006 4:01 PM by Dimitris Andreadis

    NoInitialContextException when lookup RMIAdaptor

    Rick Shun Newbie

      Hi,

      I try to use JNDI to lookup "jmx/invoker/RMIAdaptor". But I got following exception. Anyone can give me some clues. Thank you!!

      Exception in thread "main" 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(NamingManager.java:645)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at test.Testing.main(Testing.java:19)

      RS