1 Reply Latest reply on Aug 13, 2002 8:03 PM by Joel Vogt

    JNDI ContextFactory Error !!!

    Praveen Newbie

      Hey Guys

      I am getting following error when i am using following method

      public static Object getHomeReference(String objectName) throws Exception
      {
      java.util.Hashtable environment = new java.util.Hashtable();
      environment.put("java.naming.factory.initial", "org.jnp.interface.NamingContextFactory");
      environment.put("java.naming.provider.url","jnp://localhost:1099/");
      environment.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interface");
      javax.naming.InitialContext context = new javax.naming.InitialContext(environment);

      Object homeObjRef = context.lookup(objectName);

      return homeObjRef;
      }

      Error:
      java.lang.ClassNotFoundException: org.jnp.interface.NamingContextFactory

      can you please help me in this

      Thanks
      KPK