Skip to main content

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.

Jump to: navigation, search

Jetty WTP Plugin/Jetty WTP Modify Port



Changing a Jetty Server Port

  1. To modify the Jetty server port, open the Jetty v7.0 Server at localhost, The Ports section is on the Overview tab (right panel).
  2. Either double click the port, or use the content menu. and type the new port number, in this example, 8081.
  3. Jetty-wtp-port1.jpg


  4. In the main Eclipse toolbar, click File -> Save. You have changed the port.
  5. 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>

Back to the top