title: Cannot instantiate class: com.sun.enterprise.naming.SerialInitContextFactory upon doing lookup
body: <p>I am trying to get this standalone (no server involved) JNDI InitialContext lookup to   work.  I am getting this exception:  </p>
  
  <p><strong>Cannot instantiate class: com.sun.enterprise.naming.SerialInitContextFactory</strong></p>
  
  <pre><code>try {  
      Hashtable &lt;String, String&gt; env = new Hashtable&lt;String, String&gt;();   
      env.put(Context.INITIAL_CONTEXT_FACTORY,
              "com.sun.enterprise.naming.SerialInitContextFactory");  
      env.put(Context.PROVIDER_URL,"localhost:1099");  
      env.put("java:comp/env/jms/RNCQueueConnectionFactory", 
              "javax.jms.QueueConnectionFactory");  
      env.put("Big", "Data");  
      Context jndiContext = new InitialContext(env);  
      jndiContext.lookup("java:comp/env/jms/RNCQueueConnectionFactory");  
      testval = (String) jndiContext.lookup("Big");
  } catch (NamingException ne) {  
      System.out.println(ne.getMessage());  
  }  
  </code></pre>
  
  <p>To me and from what I have read, I probably did not set up my context correctly.  Has   anyone successfully set up a standalone JNDI?</p>