After you have downloaded and extracted the Tomcat Server to say
D:\Tomcat7\apache-tomcat-7.0.52
Goto Eclipse
Run > Run As > Server
Select Apache > Tomcat v7.0 Server
Server Hostname as : localhost
Server Name : Tomcat v7.0 Server at localhost<any name>
Click Next
Provide Tomcat installation directory
Click Next
Move available resources(project) to the right pane, if not added.
Click Finish.
Notice a folder with name "Servers" is created in the "Package Explorer" view.
If you receive any port conflicts it means (default port :8080) is in use, change the settings in the server.xml file present under the "Servers" folder
Search for 8080 and replace it to example 9080.
<Connector port="9080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="9443" />
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="9009" protocol="AJP/1.3" redirectPort="9443"/>
<Server port="9005" shutdown="SHUTDOWN">
Your url should now be accessible at http://localhost:9080
D:\Tomcat7\apache-tomcat-7.0.52
Goto Eclipse
Run > Run As > Server
Select Apache > Tomcat v7.0 Server
Server Hostname as : localhost
Server Name : Tomcat v7.0 Server at localhost<any name>
Click Next
Provide Tomcat installation directory
Click Next
Move available resources(project) to the right pane, if not added.
Click Finish.
Notice a folder with name "Servers" is created in the "Package Explorer" view.
If you receive any port conflicts it means (default port :8080) is in use, change the settings in the server.xml file present under the "Servers" folder
Search for 8080 and replace it to example 9080.
<Connector port="9080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="9443" />
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="9009" protocol="AJP/1.3" redirectPort="9443"/>
<Server port="9005" shutdown="SHUTDOWN">