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
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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