title: javax.naming.NoInitialContextException: Cannot instantiate class:
body: <p>I'm trying to implement Simple EJB Application Described in <a href="http://www.tutorialspoint.com/ejb/ejb_create_application.htm" rel="nofollow">tutorialpoint</a> and I’m using JBoss 5.1 and eclipse as IDE and i created project as EJB 3. but I’m getting the below error</p>
  
  <pre><code>javax.naming.NoInitialContextException: Cannot instantiate class:   org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
  at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
  at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
  at javax.naming.InitialContext.init(InitialContext.java:242)
  at javax.naming.InitialContext.&lt;init&gt;(InitialContext.java:216)
  at com.tutorialspoint.test.EJBTester.&lt;init&gt;(EJBTester.java:42)
  at com.tutorialspoint.test.EJBTester.main(EJBTester.java:51)
  Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
  at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:274)
  at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:72)
  at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:61)
  at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
  ... 5 more
  java.lang.NullPointerException
  at com.tutorialspoint.test.EJBTester.testStatelessEjb(EJBTester.java:65)
  at com.tutorialspoint.test.EJBTester.main(EJBTester.java:53)
  null
  </code></pre>
  
  <p>can anyone Guide me on this?</p>