Originally posted by Venkat Ammisetty:
Hai
Can any one tell me what could be the error in the following code
Hashtable ht2=new Hashtable();
ht2.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.Websphere.naming.WsnInitialContextFactory");
ht2.put(Context.PROVIDER_URL,"iiop://localhost");
Context cxt=new InitialContext(ht2);
I am getting the following exception
[01.09.20 15:03:32:090 PDT] 6130ab1c WebGroup X Servlet Error: Cannot instantiate class: com.ibm.Websphere.naming.WsnInitialContextFactory: javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.Websphere.naming.WsnInitialContextFactory. Root exception is java.lang.ClassNotFoundException: com.ibm.Websphere.naming.WsnInitialContextFactory
Begin backtrace for rootCause
java.lang.ClassNotFoundException: com.ibm.Websphere.naming.WsnInitialContextFactory
Is any thing wrong in Initial Context Factory?
Thank's in advance
Venkat