3 fixes:
1. In 3.0.6 org.jboss.Shutdown is broken:
PasswordAuthenticator(String username, String password)
throws NPE if password is not given. See also patch #
677603. The patch prevents this.
2. It is impossible to shutdown with org.jboss.Shutdown
if HTTP is disabled.
To fix, I propose to use additional parameter:
java org.jboss.Shutdown [host [port [protocol]]] [-u
username] [-p password] [-c shutdown_command]
Protocol is located after port to prevent existing
scripts from break.
3. Masking most exceptions makes it hard to find why
the shutdown is not happening. With patch all
exceptions are being printed to System.err with
printStackTrace().
Vlad Kosulin
Logged In: YES
user_id=562186
Here is file.
Logged In: YES
user_id=562186
Unfortunately, Scott Stark applied the patch incompletely.
As a result, Shutdown still does not work if http is disabled.
Here are changes missed:
org.jboss.Shutdown.java:
change
URL url = new URL("http", host, port, command);
to
URL url = new URL(protocol, host, port, command);
Logged In: YES
user_id=175228
This was fixed in 3.0.8.