2 Replies Latest reply on Dec 13, 2004 12:10 PM by bellmann29

    How to use run.jar and shutdown.jar

    bellmann29

      Hello all there,

      the "Getting Started Guide" only uses run.bat or run.sh in examples but there are also a run.jar and shutdown.jar in the servers bin-directory.
      My question is, how to use them right. For example, I used run.jar in the following way: java -jar run.jar -c minimal. Everything goes fine, the server starts up with minimal configuration. But my Problem is to shutdown the server. If I try it with: java -jar shutdown.jar -S -n minimal , i got some error-messages and the server dont shut down.
      If there is anybody who knows how to use run.jar and shutdown.jar in the right way, please post a reply on this forum or make it public in the "Getting Started Guide".

      Thank you,

      Jörg Bellmann

        • 1. Re: How to use run.jar and shutdown.jar
          frankgrimes

          Please post the error you are getting, otherwise it is nearly impossible for anyone to help you.
          Also, knowing the JVM, Jboss and OS versions might be useful too.

          • 2. Re: How to use run.jar and shutdown.jar
            bellmann29

            Hello all, hello frank,

            i got the answer i need. I tried it always with the following: java -jar shutdown.jar -S -n minimal. Where -S stands for operation "shutdown" and -n stands for "name of server". I got messages that "domain not found" or "name not bound (jmx-exception)" when i tried with: java -jar shutdown.jar -S -n jboss.system:type=Server.

            Ok, to do it the right way is very easy: java -jar shutdown.jar -s localhost. But here it is a small s and the param is the servers url. No operation-param or something else. And it works.

            thanks to frank, for trying to help me