I'm trying to contact the first EJB I've deployed on Websphere from a standalone client on anther system. When I tried to get the naming context, I got this error:
Caught an unexpected exception!Cannot instantiate class: com.ibm.websphere.namin
g.WsnInitialContextFactory
javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.websph
ere.naming.WsnInitialContextFactory. Root exception is java.lang.ClassNotFoundE
xception: com.ibm.websphere.naming.WsnInitialContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:217)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
a:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
49)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at RsvClient.main(RsvClient.java:25)
I'm not sure if this is an issue on the client machine where Websphere is not or on the server where Websphere is. Suggestions please? Thanks.
Ken