Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] NumberFormatException: null on basic stop

Seems that STOP.PORT and STOP.KEY are actually case sensitive.

you have 2 choices of use.

1) As System Property
> java -DSTOP.PORT=9079 -DSTOP.KEY=secret -jar C:\opt\jetty\start.jar --stop

2) As Jetty Property
> java -jar C:\opt\jetty\start.jar STOP.PORT=9079 STOP.KEY=secret --stop


--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts


On Mon, Jun 2, 2014 at 9:02 AM, BRUNO MELLONI <Bruno.Melloni@xxxxxxxxxxxxx> wrote:

I am new to Jetty so I’m sure that I am missing something obvious.  This is Jetty 9.2.0.

 

Started Jetty with:

 

C:\opt\myappbase>java -Dstop.port=9079 -Dstop.key=secret -jar C:\opt\jetty\start.jar

 

This started Jetty fine and when I placed the sample ROOT folder in webapps it displayed fine.

 

Then I tried to stop Jetty with this and got:

 

C:\opt\myappbase>java -Dstop.port=9079 -Dstop.key=secret -jar C:\opt\jetty\start.jar --stop

java.lang.NumberFormatException: null

        at java.lang.Integer.parseInt(Unknown Source)

        at java.lang.Integer.parseInt(Unknown Source)

        at org.eclipse.jetty.start.Main.start(Main.java:660)

        at org.eclipse.jetty.start.Main.main(Main.java:108)

 

Usage: java -jar start.jar [options] [properties] [configs]

       java -jar start.jar --help  # for more information

 

 


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top