1 Reply Latest reply on Mar 19, 2002 12:00 PM by Adrian Brock

    Cannot instantiate class: org.jnp.interfaces.NamingContextFa

    Ray Ramos Newbie

      Before I start writing heavy duty beans I first need to demonstrate that I can get a simple app working. I didn't have any problems with deploying the jar file. I'm having trouble with the client side JNDI look-up.

      The error I'm getting is: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory

      I've triple checked all of the fundamentals. The jndi.properties file and EVERY client jar file is explicitly declared in the classpath. I even bought the online docs but couldn't find the solution. I'm truly stuck.

      My directory structure looks like this:
      ---------*.java (EJB)
      ---------*.jar (client jars)

      And the client source code:

      Properties p = new Properties();



      InitialContext jndiContext = new InitialContext(p);

      Please Advise, Thanks, Ray