dev@glassfish.java.net

asadmin list-components without --host --port

From: Cheng Fang <Cheng.Fang_at_Sun.COM>
Date: Mon, 04 Dec 2006 13:47:06 -0500

This command recently stopped working for me:
.|/asadmin list-components --user admin --passwordfile
$HOME/bin/password.txt

Unable to connect to admin-server. Please check if the server is up and
running and that the host and port provided are correct.
CLI137 Command list-components failed.
|
I found I have to specify --host AND --port to get it to work:
|./asadmin list-components *--host localhost --port 4848* --user admin
--passwordfile $HOME/bin/password.txt
Nothing to list.
Command list-components executed successfully.

|But its man page clearly shows host defaults to localhost and port
defaults to 4848 | 4849. And the interesting thing is I have to use
both --host and --port. Any idea?

|./asadmin list-components --help
SYNOPSIS
     list-components [--terse=false] [--echo=false] [--
     interactive=true] [--host localhost] [--port 4848|4849] [--
     secure|-s] [--user admin_user] [--passwordfile filename] [-
     -help] [--type application|ejb|web|connector|webservice]
     [target]|


-cheng