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. In the Port Number field, replace the current port number, 8080, with 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>