Sometimes my shutdown script fails even if Jetty is running and I have to kill -9 <pid> to stop it. Anyone experience the issue? I am running jetty-runner-9.1.4.v20140401.jar.
My script (bin/shutdown) runs the following command:
$JAVA_HOME/bin/java -DSTOP.PORT=6061 -DSTOP.KEY=killit -jar jetty/start.jar --stop
> ./bin/shutdown
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:244)
at org.eclipse.jetty.start.Main.stop(Main.java:1086)
at org.eclipse.jetty.start.Main.processCommandLine(Main.java:178)
at org.eclipse.jetty.start.Main.main(Main.java:97)
Thanks in advance.