Tomcat

Apache Tomcat, often referred to as Tomcat, is an open-source web server and servlet container developed by the Apache Software Foundation. It is designed to execute Java Servlets and JavaServer Pages (JSP) and provides a robust and efficient environment for running Java web applications.

Tomcat is widely used for hosting web applications, particularly those developed using Java technologies.

Related Tags

Tutorials

Maven Tomcat Plugin

Tomcat Maven Plugin Example

In this maven tutorial, learn to add and configure tomcat plugin to pom.xml and use it deploy the web application without any tomcat installation in machine.

Tomcat – Get Real IP behind Load Balancer

Mostly for logging and security purposes, we need the IP address information for incoming requests. 1. HTTPServletRequest.getRemoteAddr() In a Java web application, we can get IP address using HTTPServletRequest.getRemoteAddr() method. String ipAddress = httpServletRequest.getRemoteAddr(); BUT, if our application is running behind a load balancer proxy and we would like to …

Tomcat SSL or HTTPS Configuration Example

Secure Socket Layer (SSL) is a secure transfer protocol used for communication on the Internet using cryptographic methods. The main purpose of the SSL protocol is to guarantee that no one can tamper with the communication between a browser and the server where the web application is deployed. Another purpose …

How to run Tomcat on port 80

By default, Tomcat is configured to run on port 8080. That’s why all the deployed web applications are accessible though URLs like http://localhost:8080/yourapp. If you want to run an application on URL like http://localhost/yourapp, then you will need to change the default port 8080 to 80, which is default port …

Tomcat – Architecture and server.xml configuration

We already learnt how webservers work in general when you deploy your web application on server and access from a browser. Now let’s learn the stuffs inside server which may not be used in day to day job, but they will certainly help you when you are configuring your application …

Running Multiple Tomcats with Single Server Installation

Many times we come to a situation where we need to modify the server configuration such that it is specific to an application. And if we got more than one such application and we want each application to have its own defined configuration options, then it needs some sort of …

How does a Web Servers Work?

Today the line between “app server” and “web server” is fuzzy. But people continue to use the terms differently, primarily for emphasis.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.