Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2008-05-12T13:52:30Z by SystemAdmin
SystemAdmin
SystemAdmin
1215 Posts
ACCEPTED ANSWER

Pinned topic ClassNotFoundException: com.ibm.Websphere.naming.WsnInitialContextFactory

‏2008-04-25T21:32:09Z |
Hi

I am getting following exception when I connect to SQLServer server (Datasource) through JNDI which has binded to WAS 6.0 in (RAD 7.0). The code has present in the EJB project to get the InitialContext.
javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.Websphere.naming.WsnInitialContextFactory Root exception is java.lang.ClassNotFoundException: com.ibm.Websphere.naming.WsnInitialContextFactory

Should I need to keep any jar file in the classpath? Any idea?

Thanks..

Message was edited by: portal51
Updated on 2008-05-12T13:52:30Z at 2008-05-12T13:52:30Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1215 Posts
    ACCEPTED ANSWER

    Re: ClassNotFoundException: com.ibm.Websphere.naming.WsnInitialContextFactory

    ‏2008-05-12T13:52:30Z  in response to SystemAdmin
    The problem has been solved. There was misktake in the defining the path.

    com.ibm. w ebsphere.naming.WsnInitialContextFactory.