GLASSFISH-17514 describes a change to start-domain where it requires the user to set an admin password at startup. We must also handle the case where the server is started by a mechanism other than start-domain.
As described in 17514 the admin-keyfile may contain a special token for the admin password hash that indicates an admin password must be set before the domain can be started. The server should detect this at startup and fail with a message like:
"The server requires a valid admin password be set before it can start. Please set a password using the change-admin-password command."