4 Replies Latest reply: Jun 5, 2013 2:17 AM by gimbal2 RSS

    javax.naming.NoInitialContextException

    User_Sep
      Hi,
      I am new to EJB 3, I tried develop a simple EJB application by following the below link.

      http://www.myeclipseide.com/documentation/quickstarts/ejb3/

      I was almost done.

      When I run the client bean, It shows the error as shown below:
      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.myeclipseide.ejb3.MyBeanClient.main(MyBeanClient.java:10)
      I don't what was the problem.Can anyone guide me?

      Thanks
      -raka