Amos
Amos

Reputation: 1351

Changing port when running Jetty using jetty-runner

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

Answers (1)

M A
M A

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

Related Questions