Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Naming lookup problem

6 views
Skip to first unread message

kdlitwak

unread,
Apr 23, 2004, 4:23:41 PM4/23/04
to
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

Wayne Beaton

unread,
Apr 23, 2004, 10:04:30 PM4/23/04
to
You need to run your client in the application client container (after you
package it up in an EAR). The application client container sets up all the
JARs and options that you need to have to access application server
resources. Look for launchClient.bat in Application Server's bin directory.
You should be able to find some help on it in the InfoCenter as well.

Others have documented alternatives to the application client container on
this list. You should be able to find the posts if you poke around a bit.

Wayne

"kdlitwak" <java...@yahoo.com> wrote in message
news:2071227632.1082751820940.JavaMail.wasadmin@swg3ws006...

0 new messages