How to change port numbers for Tomcat in Eclipse
- Details
- Written by Nam Ha Minh
- Last Updated on 05 August 2019   |   Print Email
- Tomcat admin port: 8005
- HTTP/1.1: 8080
- AJP/1.3: 8009
http://localhost:8080/MyCoolApp
Eclipse allows us to change these port numbers easily with just a click of mouse. In the Servers view, double click on the server name:



http://localhost/MyCoolApp
NOTES: Changing the Tomcat’s port numbers in Eclipse does not affect the default Tomcat installation on your computer (outside Eclipse IDE). It is because Eclipse makes a copy of Tomcat configuration in its workspace, by default. If we notice, there is a node called “Servers” in the Project Explorer/Package Explorer view. Expand this node, we will see:

Other Tomcat Tutorials:
- How to deploy a Java web application on Tomcat
- How to Embed Tomcat Server into Java Web Applications
- How to Use Virtual Hosts in Tomcat
- How to set web application context path as server root in Tomcat
- How to configure JNDI DataSource for Database Connection Pooling in Tomcat
- How to configure session timeout in Tomcat
- How to change server location and deploy path for Tomcat in Eclipse
About the Author:

Comments
The server still isn't working