1 Reply Latest reply on Feb 6, 2003 5:56 PM by X Yang

    Cannot instantiate class: org.jnp.interfaces.NamingContextF

    X Yang Newbie

      Hi, everyone

      I get following exception while I create InitialContext() to get JNDI initial context.

      javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interf
      aces.NamingContextFactory. Root exception is java.lang.ClassNotFoundException:
      org.jnp.interfaces.NamingContextFactory

      I have a jndi.properties file contains the following in the classpath:

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.provider.url=jnp://localhost:1099
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

      I have jni-client.jar, jnp client jar and jboss-j2ee.jar in the class path.

      I checked Jboss documents and nearly read all the topics, I think I have done everything, but simply the program does not work. Can anyone help...thanks