Apache Tomcat

Apache Tomcat

Apache Tomcat

Apache Tomcat provides an environment for executing Java code on web servers. There is a program written in Java servlet container that uses the Jasper JSP compiler and it can also translate into servlets, JavaServer Pages and run them. In addition, it a complete HTTP server.

James Duncan Davidson, while working at Sun Microsystems as a developer, began to develop an implementation of the Tomcat as Servlet-spesific application. He helped the Tomcat is become an open-source project and passed it to the Apache Software Foundation. Apache Tomcat, an open-source software, is now fully developed under the JCP (Java Community Process), and is released under Apache Software Licence.

The term “Servlet Container” is the chosen by the Tomcat developers terminology (they probably derives from the preferred in Tomcat configuration using XML files created from a strictly hierarchical nested structures exist). Precursor of Apache Tomcat are usually classified as a “servlet” and / or JSP engine. With the release of Tomcat was comfortable as both functions combined in one product.

The HTTP server of the Tomcat is used primarily to develop, while running in production, generally an Apache Web server in front of the Tomcat. This is a connector in the Web server plug-in (mod_jk) involved, which forwards requests for dynamic content to Tomcat. The plugin implements this, the Apache JServ Protocol (AJP). There are also connector plug-ins for Microsoft (IIS) and Netscape Web server.

Apache Tomcat Development

Prior to the establishment of the Tomcat project maintained the Apache Software Foundation already has a named JServ servlet container. JServ support in its latest version of the Servlet specification 2.0. 1999 Sun Microsystems announced at the JavaOne developer conference, then put the reference implementation of the Servlet specification 2.1 of the Apache Software Foundation disposal. JServ from the merger of the existing code base, and Sun’s reference implementation was developed in 1999, the Tomcat project.

Against this background explains that the first version of Tomcat 3.0 was the version number directly. Tomcat 6.0.20 is the current stable version. It implements the Servlet 2.5 and JSP 2.1. It also Consists of the Tomcat servlet container Catalina and the Coyote connector. The connector supports using various protocol handlers for example, the processing of HTTP requests, or the connection between Tomcat and the Apache web server using JServ Protocol – AJP – which exists with the current version. It is possible to run the servlet container on a separate host computer to offload the web servers and in particular allows the load-balancing functionality for satisfying power requirements of the Web server. It has a cluster of several servlet containers-made pages.

Apache Tomcat Directory Structure

The directory hierarchy of a Tomcat installation (version 6.0.x) includes:

  • Bin – startup, shutdown and other scripts and executables
  • Lib – common libraries that can be used by Catalina and other web applications
  • Conf – (XML) configuration files
  • Logs – Catalina and application logs
  • temp – Directory where temporary files are created
  • Webapps – Directory of web applications
  • Work – directory to store compiled JSP files, persisted sessions, etc.

Sharing

Leave your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.