Prepare Required Files Use an SSH client like MobaXterm to connect to the remote Linux server and transfer the necessary packages: JDK, Apache Tomcat, MySQL, and optionally Nginx. Once uploaded, extract all archives in advance to streamline setup. # Extract JDK tar -zxvf jdk-8u151-linux-x64.tar.gz #...
This article outlines the process of enabling HTTPS support in Apache Tomcat using a self-signed certificate generated via the JDK's built-in keytool utility. Generating the Certificate Begin by navigating to the bin directory with in your JDK installation path through the command line interface. Ex...
Downloading Tomcat Source Code Clone the Tomcat 8.5.x branch from the official Apache repository: git clone https://github.com/apache/tomcat.git Switch to the 8.5.x branch for compatibiilty with this setup. Creating the Maven POM File Add a pom.xml to the root of the cloned repository with the follo...
In Java web development, regular Java classses cannot be directly accessed via a browser. To enable HTTP-based interaction, Java provides Servlets—specialized classes that act as dynamic resources within a web application and respond to client requests through URLs. It's important to distinguish rel...
System Preparation and Package Updates sudo yum upgrade -y sudo yum install -y vim tar net-tools wget sudo systemctl reboot MySQL 8 Database Configuraton sudo yum install -y https://repo.mysql.com/mysql84-community-release-el9-1.noarch.rpm sudo yum repolist enabled | grep mysql sudo yum install -y m...
Request Flow in Tomcat In modern microservices architectures, user requests originate from various clients like mobile apps or web browsers. These requests are typically routed to backend services. For instance, consider a setup with Server A and Server B, where Server A forwards requests to Server...
Running multiple Tomcat instances on a single host requires careful port management and service isolation. This setup demonstrates deploying two additional instances alongside a primary installation, followed by JMX monitoring configuration and Zabbix integration using containerized infrastructure....
Symptom Tomcat fails to start or restarts with severe and warning messages about filters not initializing, JDBC drivers not being unregistered, and a lingering background thread called Abandoned connection cleanup thread. Example log excerpt: 02-Apr-2021 10:12:41.915 SEVERE [localhost-startStop-1] o...
Symptom Upgrading to Tomcat 8.5+ (including the embedded Tomcat in Spring Boot) may reject requests whose path or query contains characters such as {, }, [, ], |, \ and others. A typical failure looks like: java.lang.IllegalArgumentException: Invalid character found in the request target. The valid...
Tomcat 9 does not provide a dedicated Maven plugin. The Tomcat Manager interface, however, is backward-compatible, so the Tomcat 7 Maven Plugin can be used to deploy to Tomcat 9. This guide shows two setups: Using the Tomcat 8 Maven Plugin (historical build that requires custom plugin repositories)...