Trying to run a servlet with jetty and I'm getting the error message "Server port In Use 8080-Http". I assume we can just change the port, but I have no clue how.
Asked
Active
Viewed 517 times
1
-
two server r running on same port 8080.Change the port no for one of the server – Kick Feb 24 '14 at 18:44
-
How do I change this? Is this something I do in eclipse, or do I have to edit a .xml? – user3032755 Feb 24 '14 at 18:51
-
mvn -D jetty.port=9999 jetty:run – Kick Feb 24 '14 at 18:53
1 Answers
0
You can change the port via the command line, jetty.port=8081.

Patrick J Abare II
- 1,129
- 1
- 10
- 31
-
Duplicate issue, http://stackoverflow.com/questions/11652058/how-to-override-jetty-xml-with-jetty-port – Patrick J Abare II Feb 24 '14 at 18:51