users@glassfish.java.net

Re: Unable to List JNDI (listBindings) from standalone client

From: <glassfish_at_javadesktop.org>
Date: Thu, 07 Jan 2010 08:07:42 PST

Which JDK and platform are you using? This works fine for me, in the sense that the server is contacted. Note that the listBindings will likely fail with a NotSerializableException since the client program is asking for all objects from the top-level of the namespace, and not all are intended to be sent over the wire.

However, the root of the issue is whether the client can bootstrap the GlassFish naming provider, which should work fine with only gf-client.jar or appserv-rt.jar in the classpath. Are you referring to gf-client.jar from within the $GF_HOME/modules/ directory itself or copying it to some other location? gf-client.jar can not be easily relocated.
[Message sent by forum member 'ksak' (kenneth.saks_at_sun.com)]

http://forums.java.net/jive/thread.jspa?messageID=379341