title: JBoss eap 6 JNDI Issue
body: <p>I am trying out the following tutorial which creates a simple EJB and then accesses via a Java SE client: 
  <a href="http://www.tutorialspoint.com/ejb/ejb_create_application.htm" rel="nofollow">http://www.tutorialspoint.com/ejb/ejb_create_application.htm</a></p>
  
  <p>This tutorial uses ant but I am using maven. Now, in my client, I am getting the following error while creating the initial context: </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 EJBDriver.main(EJBDriver.java:21)
  </code></pre>
  
  <p>I have added the following dependencies to my pom.xml:</p>
  
  <pre><code>     &lt;groupId&gt;org.jboss.spec&lt;/groupId&gt;
       &lt;artifactId&gt;jboss-javaee-6.0&lt;/artifactId&gt;
  
       &lt;groupId&gt;org.jboss.as&lt;/groupId&gt;
        &lt;artifactId&gt;jboss-as-ejb-client-bom&lt;/artifactId&gt;
  </code></pre>
  
  <p>Finally, the jndi properties: </p>
  
  <pre><code>java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  java.naming.provider.url=localhost:4447
  </code></pre>
  
  <p>How to solve this issue?</p>