1 2 Previous Next 17 Replies Latest reply on Apr 30, 2003 1:59 PM by bryanlewis

    Shutdown problem?

      I'm not a newbie (not even a JBoss newbie), but I'm afraid I'm going to feel very stupid when someone tells me the answer to this one. I just downloaded JBoss 3.0.6 with Tomcat and unzipped it on my Windows XP machine (JDK 1.4.1). I started it up; seems to start up fine (however, has :8082 disappeared? I get nothing--a clue?).

      The problem comes when I try to shut it down. Nothing happens. The shutdown program runs, tells me shutdown is complete, and exits, but nothing shuts down....

      First thing I do when I get a new JBoss version, just a sanity check, is to start it up and shut it down. Until now, always worked flawlessly. After a while thinking through this, I'm feeling a wee bit insane.

      Just to be sure, I rechecked the quick start documentation and didn't see anything different. I have bought documentation (several iterations), but couldn't find anything that seemed to help in it. Is there new documentation that has something?

      Would someone please make me feel dumb and explain what I need to do differently? I don't for a moment think you shipped with a non-working shutdown script, but somehow I've missed something, obviously.

      Thanks!

      David Sills

        • 1. Re: Shutdown problem?

          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.

          • 2. Re: Shutdown problem?

            oh and BTW, the "feature" has been removed in the 3.0.x branch, so the next release should not have it.

            • 3. Re: Shutdown problem?

              Many thanks! I feel slightly more sane now (I _could_ be mistaken, however :)

              • 4. Re: Shutdown problem?
                luwasoft

                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..."

                • 5. Re: Shutdown problem?
                  pstrotmann

                  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.

                  peter

                  • 6. Re: Shutdown problem?
                    k2brewer

                    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?

                    Thanks.

                    • 7. Re: Shutdown problem?
                      coach-x

                      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.

                      • 8. Re: Shutdown problem?

                        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.

                        • 9. Re: Shutdown problem?
                          coach-x

                          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.

                          • 10. Re: Shutdown problem?
                            k2brewer

                            Thanks! I didn't know the [host [port]] option. It works fine now.

                            • 11. Re: Shutdown problem?
                              loic

                              HI all,

                              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?

                              • 12. Re: Shutdown problem?
                                blueser

                                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.

                                Any ideas?

                                TIA

                                Andre

                                • 13. Re: Shutdown problem?
                                  blueser

                                  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?

                                  TIA

                                  Andre

                                  • 14. Re: Shutdown problem?
                                    yoyodyne

                                    shutdown.sh -s hostname worked fine for me on solaris 8.

                                    1 2 Previous Next