1 Reply Latest reply on Jul 17, 2014 3:14 PM by Wolf-Dieter Fink

    EJB 3.1 Session Bean

    Allwyn Lawrence Newbie

      Hi Guys,

                   I'm a beginner with Java/EJB. I'm trying to setup a basic session bean program. I'm getting the following error when i run my client


      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(Unknown Source)

        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

        at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)

        at javax.naming.InitialContext.lookup(Unknown Source)

        at com.hp.sw.psp.gdc.client.AllyClient.doLookup(AllyClient.java:66)

        at com.hp.sw.psp.gdc.client.AllyClient.invokeAlly(AllyClient.java:33)

        at com.hp.sw.psp.gdc.client.AllyClient.main(AllyClient.java:24)