Reputation: 1351
I'm executing the following command line:
java -jar C:\WorkArea\jetty-runner.jar c:\name.war --port 9090
I'm expecting it to run on port 9090 but it keeps on running using port 8080 which is the default. What am I missing? When running through eclipse itself, it is using 8888 so it's not taking this info from there, where/how else can I control the port? Thanks
Upvotes: 2
Views: 1443
Reputation: 72884
The documentation of the Jetty Runner suggests that the port option should be passed before the WAR file:
java -jar C:\WorkArea\jetty-runner.jar --port 9090 c:\name.war
Upvotes: 5