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 05, 2016

Applies to:

Oracle GlassFish Server - Version: 2.1 and later   [Release: 2.1 and later ]
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="8080" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool" />
<network-listener port="8181" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool" />
<network-listener port="4848" 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="8080" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool" />
<network-listener port="8181" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool" />
<network-listener port="4848" 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: D:\glassfish3\glassfish\domains\domain1
Log file: D:\glassfish3\glassfish\domains\domain1\logs\server.log
Admin port for the domain: 4848
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

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms