javax.naming.NoInitialContextException: Need to specify class name in environment or system property or applet parameter, or in an application resource file: java.naming.factory.initial

Oracle Community | hoffman462 | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Unable to List JNDI (listBindings) from standalone client

    Oracle Community | 7 years ago | hoffman462
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property or applet parameter, or in an application resource file: java.naming.factory.initial

    Root Cause Analysis

    1. javax.naming.NoInitialContextException

      Need to specify class name in environment or system property or applet parameter, or in an application resource file: java.naming.factory.initial

      at javax.naming.spi.NamingManager.getInitialContex()
    2. Java RT
      InitialContext.listBindings
      1. javax.naming.spi.NamingManager.getInitialContex(NamingManager.java:645)
      2. javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
      3. javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
      4. javax.naming.InitialContext.listBindings(InitialContext.java:447)
      4 frames