quality@glassfish.java.net

Re: reply:

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Thu, 20 Nov 2008 06:55:17 -0600

dinghy wrote:
> I use the enterprise version,you know ,I can define the port at the
> beginning.
> what does the default mean?
> Forever 4848,or the port defined at first?
> Surely it's a bug .
>
No, it is not really a bug, if I understand what you are trying to do.

You are free to create multiple domains, all running at the same time on
the same system. To work, each must use a different admin port. So when
you use asadmin commands - or when you use the admin console - you must
specify which admin port you want to connect to in order to choose which
domain you want to talk to.

For the asadmin command utility the default port - the port it will use
if you do not specify one - is 4848. If you want to talk to another one,
as Jane suggested, use the --port option.

I hope that helps.

- Tim
> -- ----------------原始邮件------------------
> *发件人:*"Jane Young"<Jane.Young_at_Sun.COM>;
> *发送时间:*2008年11月20日(星期四) 下午4:59
> *收件人:*"quality"<quality_at_glassfish.dev.java.net>;
> *主题:*
> Why is this a bug?
> You need to specify "--port 5858". If this option is not specified, it
> defaults to 4848.
>
> dinghy wrote:
>> descriptions:[ I set the port as 5858]
>>
>> D:\server\glassfish-v3-prelude\bin>asadmin set
>> server-config.http-service.http-l
>> istener.http-listener1.property.jkEnabled=true
>> Remote server does not listen for requests on [localhost:4848].
>> Is the server up?
>> No such local command, set. To run remote commands, start the
>> application server
>> (e.g. asadmin start-domain).
>> Command set failed.
>> D:\server\glassfish-v3-prelude\bin>
>>
>