users@glassfish.java.net

Re: how to run load balancing for RMI server on glassfish?

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 Jan 2009 04:42:40 PST

thank You very much for your reply. I understant you are talking about client for my RMI server. Ok ive tried to do it with web start. My client application works while running on my local machine through 'java -jar klient.jar' with a rmi server running from eclipse.

1. Should i deploy and run my RMI server in same way? (deploy it from jar to glassfish and run from webstart?) or is it some other way to do it. (i would prefer to run it automatically by glassfish rather to click on every instance webstart)

2. For every jar i wanted to run from web start i get this error:
java.lang.ClassNotFoundException: com.sun.enterprise.appclient.MainWithModuleSupport
        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 java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.sun.enterprise.appclient.jws.boot.JWSACCMain.run(JWSACCMain.java:218)
        at com.sun.enterprise.appclient.jws.boot.JWSACCMain.main(JWSACCMain.java:182)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sun.javaws.Launcher.executeApplication(Unknown Source)
        at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
        at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
        at com.sun.javaws.Launcher.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

(for my rmi client as well)..

Thank Your 1 more time your post was really helpful and im looking forward for more ; )
[Message sent by forum member 'freeq1986' (freeq1986)]

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