Eclipse is a very powerful development environment for Java. Mainly for Web Development project you need Web Server. Apache Tomcat is the best production ready web container.
By default when you download Eclipse IDE, it doesn’t come with Tomcat install with it. In this tutorial we will go over all detailed steps to configure Apache Tomcat successfully in Eclipse environment.
Step-1
Download Apache Tomcat from this link. I’m using version 8.0.15
.
Step-2
Extract it to Document
folder.
Step-3
- Open Eclipse Environment
- Click on
Servers
Tab - Click on No servers are available.
Click this link to create a new server...
- Click
Tomcat v8.0 Server
and Next
Step-4
Select Apache installation Directory
and click Finish
.
Step-5
You should see Tomcat v8.0 Server at localhost [Stopped, Republish]
under Servers
tab. Double click on it verify HTTP ports information. By default HTTP port is 8080.
Step-6
Now right click on Server and click Start
.
Console output:
INFO: Initialization processed in 499 ms Jan 05, 2015 9:09:28 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Jan 05, 2015 9:09:28 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/8.0.15 Jan 05, 2015 9:09:29 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-nio-8080"] Jan 05, 2015 9:09:29 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-nio-8009"] Jan 05, 2015 9:09:29 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 262 ms
It should be up and running on port 8080 and you could visit default page using URL: http://localhost:8080/
The post Step by Step Guide to Setup and Install Apache Tomcat Server in Eclipse Development Environment (IDE) appeared first on Crunchify.
Author: Arpit Shah