Hi,

I'm trying to shut down a running jetty instance, referring to:

    http://www.eclipse.org/jetty/documentation/current/jetty-runner.html

I've started jetty using:

    java -jar jetty-runner-7.6.9.v20130131.jar --config ./jetty.xml
./staging --stop-port 8081 --stop-key foo

Now trying to stop it:

    java -jar start.jar --stop-port 8081 --stop-key foo --stop

and get:

    STOP.PORT system property must be specified
    STOP.KEY system property must be specified
    Using empty key
    java.lang.IllegalArgumentException: port out of range:-1
      at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:123)
      at java.net.InetSocketAddress.<init>(InetSocketAddress.java:165)
      at java.net.Socket.<init>(Socket.java:216)
      at org.eclipse.jetty.start.Main.stop(Main.java:1061)
      at org.eclipse.jetty.start.Main.processCommandLine(Main.java:189)
      at org.eclipse.jetty.start.Main.main(Main.java:94)

It seems like start.jar is not reading the stop port/key from the command
line parameters. I see the doc I'm referring to is for jetty 9, but the
same parameters are stated as available when I look at my particular jar
version options:

 --stop-port n   - port to listen for stop command
 --stop-key n   - security string for stop command (required if --stop-port
is present)

What have I missed here?

Thank you
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to