title: javax.naming.NamingException: WFLYNAM0027: Failed instantiate InitialContextFactory
body: <p>I am using wildfly10.
  This is my java code.</p>
  
  <pre><code>private Hashtable mEnv = new Hashtable();
  InitialContext e = new InitialContext(mEnv);
  </code></pre>
  
  <p>The mEnv's value as flow.</p>
  
  <pre><code>mEnv = {
        java.naming.provider.url=localhost:8080,
         java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, 
        java.naming.security.authentication=simple,
        java.naming.security.principal=fc,
        java.naming.security.credentials=1234
  </code></pre>
  
  <p>}
  When I run this command , I have such error.</p>
  
  <pre><code>javax.naming.NamingException: WFLYNAM0027: Failed instantiate InitialContextFactory org.jnp.interfaces.NamingContextFactory from classloader ModuleClassLoader for Module "deployment.cppro.war:main" from Service Module Loader [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory from [Module "deployment.cppro.war:main" from Service Module Loader]]
  java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory from [Module "deployment.cppro.war:main" from Service Module Loader]
  WFLYNAM0027: Failed instantiate InitialContextFactory org.jnp.interfaces.NamingContextFactory from classloader ModuleClassLoader for Module "deployment.cppro.war:main" from Service Module Loader
  null
  null
  </code></pre>
  
  <p>Please help me.
  thanks.</p>