Tomcat is a Web server that executes Java EE applications with servlets and JSP pages. In this example we are going to see how to use it with Eclipse.
Installation
We go to https://tomcat.apache.org/ download-80.cgi and download the file 64-bit Windows zip. After that, we extract the content in a path with permission.
New server in Eclipse
We go to Eclipse and open the Servers view. There we click on “Add new server…” and select Tomcat 8 and the path where we unzipped the file.
Configuration
To configure the server, we double-click on the name of it in the Servers view.
Application deployment
It is as easy as right-click on the name of our Java EE project an click on Run As / Run on Server or Debug As / Debug on Server. This will start o restart the server and after that we will be able to access out application by opening localhost:8080/[application’s name]/[view to open].
Iniciar el servidor
Click derecho sobre el nombre del servidor y pulsamos en Debug o en Start.
Parar el servidor
Click derecho sobre el nombre del servidor y pulsamos en Stop.
Añadir o eliminar aplicaciones del servidor
Para añadir, hacer click derecho sobre el nombre del servidor y pulsar en Add and Remove… y después seleccionar del apartado de la izquierda las aplicaciones que queremos añadir, y pulsar en Add (o Add All). Y para eliminar es al revés: seleccionamos las aplicaciones del apartado de la derecha y pulsamos en Remove (o Remove All).
So, what do you think ?