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 [exec]

Oracle Community | 3004 | 1 decade 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

    Weblogic SP5 migration - NoInitialContextException

    Oracle Community | 1 decade ago | 3004
    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 [exec]
  2. 0

    how to mock context datasource for jdbc

    Stack Overflow | 2 years ago | user3383458
    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

    Root Cause Analysis

    1. 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 [exec]

      at javax.naming.spi.NamingManager.getInitialContext()
    2. Java RT
      InitialContext.getEnvironment
      1. javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:638)[exec]
      2. javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:241)[exec]
      3. javax.naming.InitialContext.getEnvironment(InitialContext.java:470)
      3 frames