dev@glassfish.java.net

Re: support for specifying port to asadmin deploy

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Fri, 23 May 2008 17:01:43 -0700

Sorry -- in my earlier response I was ignoring the actual command you
were calling, start-domain, which does not even allow a port option and
is a local command.

It is working just like V2 currently though we'd like to improve things
in V3

V2:

D:\as\bin>.\asadmin -p 3000 start-domain
CLI001 Invalid Command, -p.


Kedar Mhaswade wrote:

> Starting a domain with one or more http-listeners listening to ports
> accepted
> from "command line" (and overrides those specified in configuration)is
> not yet
> supported. Thus, startup of a domain gathers
> this information (e.g. like port) from domain.xml. So, if you want
> your domain
> to listen on a port other than default (8080), you have two choices:
> 1- edit domain.xml and change the port of http-listener-1.
> 2- create a separate domain specifying a port of your choice.
> 3- asadmin start-domain
>
> That was for the server.
>
> Most of the asadmin commands are admin client commands. They work by
> communicating a server on an HTTP port specified on the command line.
> I agree that we could have done better by separating asadmin options from
> command options, but till we get there, you have to specify the
> command options
> as:
>
> asadmin command-name command-options-including-host-port-etc.
>
> Thus, if you have set the port to say 9090, you would use deploy
> command as:
>
> asadmin deploy --port 9090 myjrubyapp.war
>
> We are thinking of respecting "asadmin --port 9090 deploy myjrubyapp.war"
> kind of syntax as well.
>
> Regards,
> Kedar
>
>
> 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
>>
>
> ---------------------------------------------------------------------
> 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.