users@glassfish.java.net

Re: Clustering Concepts

From: <glassfish_at_javadesktop.org>
Date: Wed, 23 Jul 2008 16:27:39 PDT

As I am chugging along my GF clustering adventures....

I have an EJB module deployed on a cluster of server instances. I used the admin console to deploy the EJB module (as jar file).

I also have a stand alone java client that needs to consumes these EJBs. I've created the appropriate ACC configuration files (sun-acc.xml), got the client stubs for the deployed EJB module.

Now, when I try to run my stand alone client in the ACC I get the following error

Run:
appclient.bat -client client_stubs.jar -mainclass Test

Error:
com.sun.enterprise.appclient.UserError: The archive client_stubs.jar seems to be valid but an app client or an enterprise app was expected

-- Why is the ACC throwing this error?
-- Can I only use the stubs from an enterprise app in this case? Will the stubs from the EJB module work?

Thanks,

Shreyas
[Message sent by forum member 'sshinde2' (sshinde2)]

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