title: Cannot instantiate class: com.ibm.Websphere.naming.WsnInitialContextFactory
body: <p>I have to port a web application from AIX to windows server, but it throws exception like his on the newly installed IBM WebSphere Community Edition in windows like this:</p>
  
  <pre><code>javax.servlet.ServletException: javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.ibm.websphere.naming.WsnInitialContextFactory in classloader...
  </code></pre>
  
  <p>Tracing the code and nailed down to be caused by this code:</p>
  
  <pre><code>    Properties env = new Properties();
      env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
      Context jdbcCtx = new InitialContext(env);  
  </code></pre>
  
  <p>The AIX Websphere is the full WebSphere Application Server while the windows one is Community Edition. I'm not sure what differences if any.</p>
  
  <p>Can anyone help to to fix that? Thanks!</p>