users@glassfish.java.net

One EAR - multiple Swing Clients

From: <glassfish_at_javadesktop.org>
Date: Tue, 11 Mar 2008 00:00:55 PST

Hi

ok, this might be a more Netbeans-related question.
I developed an EJB-App (Swing-Client), and tried out if I could add second client to the Enterprise Application Project. I deployed it, and so far it worked. I could launch both clients using Webstart from the admin-console.

But when I choose "Run" (in Netbeans) on the Enterprise Application Project, the client throws the following Exception:

11.03.2008 08:46:10 com.sun.enterprise.appclient.MainWithModuleSupport <init>
WARNUNG: ACC003: Application threw an exception.
java.lang.IllegalArgumentException: Could not locate an embedded app client matching the display name null
        at com.sun.enterprise.appclient.NestedAppClientInfo.getAppClient(NestedAppClientInfo.java:153)
        at com.sun.enterprise.appclient.AppClientInfo.getAppClient(AppClientInfo.java:202)
        at com.sun.enterprise.appclient.AppClientInfo.completeInit(AppClientInfo.java:175)
        at com.sun.enterprise.appclient.AppClientInfoFactory.buildAppClientInfo(AppClientInfoFactory.java:149)
        at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:366)
        at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:259)
        at com.sun.enterprise.appclient.Main.main(Main.java:200)

Ok, I might just create a new EAR with the second client, but would it be possible to set a starting client, or make both clients start in an EAR?

Greetings,
Jan
[Message sent by forum member 'janmueller' (janmueller)]

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