users@glassfish.java.net

Re: CLI171 Command deploy failed : Deployment of application failed -- help

From: <glassfish_at_javadesktop.org>
Date: Tue, 01 Jul 2008 11:03:52 PDT

I tried to use list-instances to find out the status of the instances, my command is like below:
list-instances --interactive=false --passwordfile /tmp/passwd_file --user admin --terse=false --host localhost --echo=true --port 9438 server_0

But its giving me an error that password is a required option even though I have supplied --passwordfile with the path of a file having the admin password.
My password file contains something like this:
AS_ADMIN_ADMINPASSWORD=password
AS_ADMIN_MASTERPASSWORD=password

The error I get is like this:

Usage: list-instances [--terse=false] [--echo=false] [--interactive=true] [--host localhost] [--port 4848|4849] [--secure|-s=true] [--user admin_user] [--passwordfile file_name] [target(Default domain)]
CLI152 password is a required option.

Then I tried giving the password on the command itself as it says its a required option:
list-instances --interactive=false --password password --user admin --terse=false --host localhost --echo=true --port 37171 server_0

It again tells me to use the --passwordfile option.
Usage: list-instances [--terse=false] [--echo=false] [--interactive=true] [--host localhost] [--port 4848|4849] [--secure|-s=true] [--user admin_user] [--passwordfile file_name] [target(Default domain)]
CLI193 Password option "password" is not allowed on the command line. Please use --passwordfile option or asadmin login command.


Also when using glassfish-v1.ur1-p01-b02, it tells me that it doesn't have list-instances command!! It gives me:
CLI001 Invalid Command, list-instances. Use "asadmin help" for a list of valid commands.

And indeed when issuing "asadmin help" shows that there is no list-instances on glassfish-v1

I've the following questions:
1) Any idea on how to exactly use list-instances command on glassfish-v2.ur2.b04??
2) Is there any common command for glassfish-v1.ur1-p010b02 and glassfish-v2.ur2.b04 where I can find out if the instances are up and running before attempting to deploy war files ??

It would be much more useful if i can find a solution to the Q-2 above.

Need help from educated ones out there... thanks a lot in advance for any help !!
[Message sent by forum member 'abhisanoujam' (abhisanoujam)]

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