users@glassfish.java.net

Re: Standalone client of GlassFish v3

From: <glassfish_at_javadesktop.org>
Date: Mon, 29 Mar 2010 11:02:35 PDT

Hi,

Do not work on Windows OS, just on Unix or Linux!!!

"get STUB"
call G:\java\sges-v3\glassfish\bin\asadmin get-client-stubs --appname HelloApp G:/java/projects/HelloApp/dist

Command get-client-stubs executed successfully.

"start STD"
java -cp g:/java/sges-v3/glassfish/modules/gf-client.jar;g:/java/projects/HelloApp/HelloApp-std-client/dist/lib/HelloApp-com.jar;g:/java/projects/HelloApp/HelloApp-std-client/dist/HelloApp-std-client.jar enterprise.hello_stateless_client.StandaloneStatelessJavaClient

The system cannot find the path specified.
java.lang.NoClassDefFoundError: enterprise/hello_stateless_client/StandaloneStatelessJavaClient
Caused by: java.lang.ClassNotFoundException: enterprise.hello_stateless_client.StandaloneStatelessJavaClient
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: enterprise.hello_stateless_client.StandaloneStatelessJavaClient. Program will exit.
Exception in thread "main"


I think this is the same error as "appclient doesn't work" thread
http://forums.java.net/jive/message.jspa?messageID=394132#394132

Attila.
[Message sent by forum member 'aszomor']

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