dev@glassfish.java.net

Re: asadmin list-components without --host --port

From: vince kraemer <Vince.Kraemer_at_Sun.COM>
Date: Mon, 04 Dec 2006 11:11:19 -0800

Bug filed. (though it is filed against the deploy subcommand the issue
appears to be the same...)

https://glassfish.dev.java.net/issues/show_bug.cgi?id=1615

vbk
Cheng Fang wrote:
> 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
>
>