-p is an argument for the start-domain command, not for asadmin itself.
You did this:
./bin/asadmin -p 3000 start-domain
You SHOULD do this:
./bin/asadmin start-domain -p 3000
Vivek Pandey wrote:
> I was talking about this issue[1] with Jerome and he mentioned that
> there is already support to specify port. When I do asadmin --help, I see
>
> -p --port
>
> The HTTP port or HTTPS port for administration. This
> port is the port in the URL that you specify in your web
> browser to manage the domain, for example,
> http://localhost:8080/admin.
>
>
> So I try to start asadmin by giving -p argument but it fails:
>
> -------
> vivekmz_at_boson(543)> ./bin/asadmin -p 3000 start-domain
> Remote server does not listen for requests on [boson:8,080].
> Is the server up?
> Command -p failed.
> -----
>
> How am I supposed to use it? Or this is not something meant to be used
> to start the server with user defined port number? The description is
> confusing and not sure what it is intended for.
>
> I need such feature from admin-cli for the gem.
>
> -vivek.
>
> [1]https://glassfish.dev.java.net/issues/show_bug.cgi?id=3964
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
--
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.