Apache Tomcat
Apache Tomcat
Introduction
Apache Tomcat (or simply Tomcat, formerly also Jakarta Tomcat) is an open
source web server and servlet container developed by the Apache Software
Foundation (ASF). Tomcat implements the Java Servlet and the JavaServer Pages
(JSP) specifications from Sun Microsystems, and provides a "pure Java" HTTP web
server environment for Java code to run.Apache Tomcat includes tools for
configuration and management, but can also be configured by editing XML
configuration files.
Components
Tomcat 4.x was released with Catalina (servlet container), Coyote (an HTTP
connector) and Jasper (a JSP engine).
Catalina
Coyote
Coyote is Tomcat's HTTP Connector component that supports the HTTP 1.1
protocol for the web server or application container. Coyote listens for incoming
connections on a specific TCP port on the server and forwards the request to the
Tomcat Engine to process the request and send back a response to the requesting
client.
Jasper
Jasper is Tomcat's JSP Engine. Jasper parses JSP files to compile them into
Java code as servlets (that can be handled by Catalina). At runtime, Jasper detects
changes to JSP files and recompiles them.As of version 5, Tomcat uses Jasper 2,
which is an implementation of the Sun Microsystems's JSP 2.0 specification. From
Jasper to Jasper 2, important features were added:
JSP Tag library pooling - Each tag markup in JSP file is handled by a tag
handler class. Tag handler class objects can be pooled and reused in the
whole JSP servlet.
Background JSP compilation - While recompiling modified JSP Java code, the
older version is still available for server requests. The older JSP servlet is
deleted once the new JSP servlet has finished being recompiled.
Recompile JSP when included page changes - Pages can be inserted and
included into a JSP at runtime. The JSP will not only be recompiled with JSP
file changes but also with included page changes.
JDT Java compiler - Jasper 2 can use the Eclipse JDT (Java Development
Tools) Java compiler instead of Ant and javac.
Cluster
This component has been added to manage large applications. It is used for
Load balancing that can be achieved through many techniques.Clustering support
currently requires the JDK version 1.5 or later.
High availability
Web Application
It has also added user as well as system based web applications enhancement
to add support for deployment across the variety of environments. It also tries to
manage session as well as applications across the network.Tomcat building is
additional components. A number of additional components may be used with
Apache Tomcat. These components may be built by users should they need them or
they can be downloaded from one of the mirrors may be built by users. [3]
Features
Tomcat 7.x implements the Servlet 3.0 and JSP 2.2 specifications. [4] It requires
Java version 1.6, although previous versions have run on Java 1.1 through 1.5.
Versions 5 through 6 saw improvements in garbage collection, JSP parsing,
performance and scalability. Native wrappers, known as "Tomcat Native", are
available for Microsoft Windows and Unix for platform integration.
History
Davidson had initially hoped that the project would become open sourced
and, since many open source projects had O'Reilly books associated with them
featuring an animal on the cover, he wanted to name the project after an animal. He
came up with Tomcat since he reasoned the animal represented something that
could fend for itself. Although the tomcat was already in use for another O'Reilly
title, his wish to see an animal cover eventually came true when O'Reilly published
their Tomcat book with a snow leopard on the cover.[5]
Communities