![apache tomcat web server apache tomcat web server](https://personal.ntu.edu.sg/ehchua/programming/howto/images/HTTP_RequestResponseMessages.png)
Tomcat will install itself as a service with reasonable defaults. If you are running Windows and want to use the installer, simply download the. The best choice is up to you-unless of course you are not running on Windows, in which case you'll go for the archive. zip or tar.gz), or as an installed service. You have a choice of downloading Tomcat as an archive (.
![apache tomcat web server apache tomcat web server](http://4.bp.blogspot.com/-K7lNTh0myaM/U6QSU1_Pa0I/AAAAAAAARrc/5As9hXV8u8o/s1600/tomcat.png)
You can usually just pick the latest stable version.įor our purposes, download the latest version of Tomcat, which currently is Tomcat 9.
![apache tomcat web server apache tomcat web server](https://www.decodejava.com/tomcat-install.png)
Information on version differences is available on the Tomcat homepage. Let's begin with a look at using Tomcat to host servlets and JSPs.īeing a hoary ancient of the software world, a number of Tomcat versions are available. I'll briefly introduce TomEE later in this article. Tomcat also has an extended version, called TomEE, that includes more enterprise features. Thanks to Coyote, it's possible to extend Tomcat to include a variety of Java enterprise specs and capabilities, including the Java Persistence API (JPA). Tomcat also contains the Coyote engine, which is a web server. As the developer, you write the servlet or JSP page, then let Tomcat handle the routing. JSP is a server-side view rendering technology. A Java servlet encapsulates code and business logic and defines how requests and responses should be handled in a Java server. A Java enterprise application server is a full-blown implementation of the Java EE (now Jakarta EE) specification.Īt heart, Tomcat is a servlet and JSP container.A web server is a server designed to serve files from the local system, like Apache.A servlet container is an implementation of the Java Servlet specification, used primarily for hosting Java servlets.The Java ecosystem supports several kinds of application server, so let's disambiguate them and see where Tomcat fits in: Tomcat 8.5 supports several newer features like HTTP/2, but remains a Servlet 3 container. Tomcat 9 supports the Servlet 4.0 spec and requires JDK 8 or greater.