Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Jetty WTP Plugin/Jetty WTP Modify Port
Changing a Jetty Server Port
- To modify the Jetty server port, open the Jetty v7.0 Server at localhost, The Ports section is on the Overview tab (right panel).
- Either double click the port, or use the content menu. and type the new port number, in this example, 8081.
- In the main Eclipse toolbar, click File -> Save. You have changed the port.
- To view the change, go to jetty.xml, where you see:
<Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="host"><SystemProperty name="jetty.host"/></Set> <Set name="port">8081</Set> ... </New> </Arg> </Call>