There's a "feature" in 3.0.6 shutdown script where you have to provide a dummy user name and password to the shutdown script even if you haven't secured the jmx-console (which is not secured by default). So executing the script with:
sh shutdown.sh -u foo -p bar
should fix it.
oh and BTW, the "feature" has been removed in the 3.0.x branch, so the next release should not have it.
Many thanks! I feel slightly more sane now (I _could_ be mistaken, however :)
Thank you for asking exactly the same Question i had :-) (and describing exactly the same feelings i had running into that problem :-)
So i was happy to read the answer just before writing down my question...
"Thats how an open community should work..."
thank you all from a newbie, had the same problem on a linux mandrake 9.1, first thought my linux was too fresh, but with the dummy workaround shutting down works fine.
That works with port 8080, but when a different port is used I find it does not shutdown. Unfortunately, my JBoss is running with some other apps. that are already using 8080. Any ideas?
I have the same problem as well if you are running jboss on port 80. I have found that you can shut down the server using jmx-console-jboss.system-type=server Then invoke the void shutdown() function.
Are you guys saying that providing the port number to the shutdown script does not work?
Usage: Shutdown [host [port]] [-u username] [-p password] [-c shutdown_command]
If so, then file a bug report.
My problem was two fold. I needed to install lynx first, but I also needed to specify the host/port.
./bin/shutdown.sh localhost 80 -u foo -p bar
Thanks for the tip juha.
Thanks! I didn't know the [host [port]] option. It works fine now.
I always have a problem on shutting down.
I am using jboss3.0.4 with tomcat4.0.6 on different OS.
On windows XP shutting down works good just in clicking on shutdown.bat
On windows NT i tried with the full option line (and other tries) but nothing happened. The shutting down program told me shutdown complete but in fact nothing. (I work on the default port 8080 and i have no login module)
What can i do?
How does this work for 3.2.0? It has no [host [port]] params. I tried using -s, but it didn't work. If I just run shutdown.sh, it does its job fine up to a point, but it always stops at the same point:
18:32:57,365 INFO [jbossweb] Stopped SocketListener on 0.0.0.0:8081
(note we're using port 8081 for jmx-console).
This leaves me no options aside from stopping it with kill -9 -- but all my guts tell me I am not doing the right thing...
BTW: I am trying to run it through the RedHat init script provided (properly modified). Nevertheless, results are the same when I invoke shutdown.sh directly.
Some additional info: if I start JBoss on a shell with run.sh and interrupt it with CTRL+C, it stops at the same point the shutdown.sh script does. However, if I press CTRL+C a 2nd time, JBoss "indeed terminates" (i.e. the rest of the shutdown takes place normally until the "Shutdown completeHalting VM" msgs appear).
I tried sending a SIGINT to the java process that started JBoss with kill -2, hoping I could fake the 2nd CTRL+C, but it simply ignores it (manually pressing CTRL+C still works, though).
Is this expected behavior?
shutdown.sh -s hostname worked fine for me on solaris 8.