dev@glassfish.java.net

Re: support for specifying port to asadmin deploy

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Fri, 23 May 2008 16:55:48 -0700

Byron Nevins wrote:
>
>
> 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.
>>
>> ]https://glassfish.dev.java.net/issues/show_bug.cgi?id=3964
>> 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.
>> -----
> Note how it says "Command -p failed"
>
> CLI has no way of knowing that there is no Remote Command named "-p".
> So it tries to call a command named "-p" with 2 arguments: "3000" and
> "start-domain"
> Since no port was specified (correctly) -- it tried the default port,
> 8080, got no answer and thus gave you the message about 8080 being
> unreachable.
>
> We have discussed adding support for allowing args like "-p", "-H",
> "--user", etc. to appear either before */or /*after the command name.
> That would have made your failure above not a failure. It also makes
> it much easier to write scripts like:
>
> asadmin --user xxx --passwordfile yyy -p 3456 $*
>
> -- If you agree on the usefulness please file a bug or rfe and assign
> it to me.
>
There is already a bug on gem that asks for such feature. gem is jruby
like distribution bunlde of nucleus.zip which includes admin-cli.

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

-vivek.
>
>
>>
>> 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.