My Oracle Support Banner

The Asadmin Stop-domain Command Does Not Stop The GlassFish Server When The Admin Listener is IP Bound To A Specific Network Interface (Doc ID 1210338.1)

Last updated on NOVEMBER 02, 2020

Applies to:

Oracle GlassFish Server - Version 2.1 to 3.0 [Release 2.1 to 3.0]
Information in this document applies to any platform.

Symptoms

The default network-listener setting in the domain.xml file will look as below:

<network-listener port="<port1>" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool" />
<network-listener port="<port2>" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool" />
<network-listener port="<port3>" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="http-thread-pool" />


There are situations when administrators/customers would want to add a specific IP address or hostname to the admin-listener's configuration (security, restrict access etc) as below:

<network-listener port="<port1>" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool" />
<network-listener port="<port2>" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool" />
<network-listener port="<adminport>" protocol="admin-listener" address="1.2.3.4" transport="tcp" name="admin-listener" thread-pool="http-thread-pool" />


In such cases, the asadmin stop-domain command will not stop the application server:

D:\glassfish3\glassfish\bin>asadmin start-domain domain1
Waiting for DAS to start .......................
Started domain: domain1
Domain location: ...\glassfish3\glassfish\domains\domain1
Log file: ...\glassfish3\glassfish\domains\domain1\logs\server.log
Admin port for the domain: <adminport>
Command start-domain executed successfully.

D:\glassfish3\glassfish\bin>asadmin stop-domain domain1
CLI306 Warning - server is not running.
Command stop-domain executed successfully.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.