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

Difference between revisions of "Jetty WTP Plugin/Jetty WTP Modify Port"

m
m
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
<ol>
 
<ol>
 
<li>To modify the Jetty server port, open the Jetty v7.0 Server at localhost,  The Ports section is on the Overview tab (right panel).  
 
<li>To modify the Jetty server port, open the Jetty v7.0 Server at localhost,  The Ports section is on the Overview tab (right panel).  
<li>Either double click the port, or use the content menu. and type the new port number, in this example, 8081.
+
<li>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.
 
+
</li>
  
  
Line 16: Line 16:
 
<li>In the main Eclipse toolbar, click File -> Save. You have changed the port.   
 
<li>In the main Eclipse toolbar, click File -> Save. You have changed the port.   
 
<li>To view the change, go to <tt>jetty.xml</tt>, where you see:  
 
<li>To view the change, go to <tt>jetty.xml</tt>, where you see:  
 +
  
 
<source lang="xml">
 
<source lang="xml">

Latest revision as of 16:58, 18 November 2010



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>

Back to the top