Apache Tomcat (called "Tomcat" for short) is a free and open-source implementation of the Jakarta Servlet, Jakarta Expression Language, and WebSocket technologies. It provides a "pure Java" HTTP web server environment in which Java code can also run. Thus it is a Java web application server, although not a full JEE application server. Tomcat is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation, released under the Apache License 2.0 license.
Source: https://en.wikipedia.org/wiki/Apache_Tomcat
- Host Java-based web applications.
- Implement and run Java Servlet and JSP technologies.
- Lightweight and highly customizable deployment platform.
- See details at: https://tomcat.apache.org/tomcat-10.1-doc/introduction.html
- Basic knowledge of Java and web server technologies.
- Java Development Kit (JDK) installed on your system.
-
Download Apache Tomcat:
- Visit the official Apache Tomcat Downloads page.
- Choose the version that matches your needs (e.g., Tomcat 10.1).
-
Install Java:
- Ensure JDK is installed on your system. Apache Tomcat requires Java to run.
- Install JDK Guide
-
Extract and Configure Tomcat:
- Extract the downloaded archive to a desired directory.
- Set the
CATALINA_HOME
environment variable to the Tomcat installation path.
-
Start Tomcat:
- Navigate to the
bin
directory of your Tomcat installation. - Run
startup.bat
(Windows) or./startup.sh
(Linux/Mac).
- Navigate to the
-
Verify Installation:
- Open a browser and go to
http://localhost:8080
. You should see the Tomcat welcome page.
- Open a browser and go to
- Set up and deploy your first servlet or JSP application:
- See: basic
- Tomcat: The Definitive Guide by Jason Brittain.
- Professional Apache Tomcat 8 by Vivek Chopra, et al.