Tomcat is developed by Apache to implement the Java servlets and the JSP(Java Server Pages). It provides a Java HTTP web server Environment which runs the Java code. Apache Tomcat runs in a single Operating System process. There are many versions of Tomcat like 5.5,6.0,7.0 etc, each version supported by different java versions like Tomcat 6.0 is support 5 or later Java version.
To start the Tomcat first we need to set the JAVA_HOME environment variable to the JDK home directory. Tomcat by default starts at port number 8080, an error can occurs if some other program holds that port. We can also change the port number from C:\apache-tomcat-(version)\bin\server.xml. To check that Tomcat is running go to your Web Browser and type the URL http://localhost:8080 in the address bar.
The components of Tomcat are:
1> Catalina: It is Tomcat’s Servlet Container which can implement Servlet and JSP pages of Sun MicroSystem.
2> Coyote: It is Tomcat’s HTTP Connector component which support HTTP 1.1 protocol for web based application & server.
3> Jasper: It is Tomcat’s JSP Engine which parses JSP files to compile into Java Code as servlets in runtime.
In latest version of Apache Tomcat 7 there is 3 more new components were added.
Cluster, High availability, Web Application
To start Tomcat we need to use start command form
To terminate we need to use shutdown command from