Understanding Tomcat's Thread Pool Execution Strategy
Most developers use Tomcat daily, but few understand the execution strategy behind its thread pool. This article explores how Tomcat's thread pool differs from the standard JDK implementation, diving into the mechanism that allows Tomcat to utilize maximum threads before queuing tasks.
The JDK ThreadPoolExecutor Behavior
Before examining Tomcat ...
Posted on Wed, 26 Aug 2026 16:20:00 +0000 by ToonMariner
Common Issues in JavaEE Servlet Applications
404 Error Troubleshooting
Common causes for 404 errors include incorrect context path configuration or mismatched servlet mappings. The correct URL format must follow http://host:port/context-root/servlet-path.
Deployment issues may stem from malformed web.xml files, improper directory structures, or incorrect server deployment. Ensure the proj ...
Posted on Thu, 20 Aug 2026 16:22:57 +0000 by Imtehbegginer
In-Memory Shell Implementation in Tomcat and Spring
Tomcat In-Memory Shells
Servlet fundamentals are essential for understanding this topic. This section explores three types of in-memory shells:
Filter-Based Implemantation
Filters intercept requests before reaching servlets. This example demonstrates a basic filter:
public class ExampleFilter implements Filter {
public void init(FilterConfi ...
Posted on Tue, 18 Aug 2026 16:13:10 +0000 by KCAstroTech
Why Custom Class Loaders Are Used in Tomcat
Tomcat uses custom class loaders for several core technical reasons:
Application Isolation: As a web container, Tomcat can run multiple web applications simultaneously. Different apps may depend on conflicting libray versions or have classes with identical fully qualified names. To prevent class conflicts and keep each application's classpath ...
Posted on Thu, 13 Aug 2026 16:24:45 +0000 by Jayson
Understanding Servlet Lifecycle in Java Web Applications
Servlet Lifecycle Overview
In this article, we will explore the complete lifecycle of a Servlet object in Java web applications. Understanding how Servlets are created, executed, and destroyed is fundamental to building robust web applications.
What is Servlet Lifecycle?
The Servlet lifecycle refers to the complete journey of a Servlet object f ...
Posted on Tue, 11 Aug 2026 16:41:17 +0000 by moiseszaragoza
Deploying TLS Termination via Nginx Reverse Proxy for Apache Tomcat
Environment and Nginx Installation
Assume a CentOS 7 environment targeting Nginx 1.18+. Begin by configuring the official package repository and installing the binary. Ensure the http_ssl_module is compiled into the binary, as it is mandatory for TLS termination.
# Install repository management utility
yum install -y yum-utils
# Create reposit ...
Posted on Thu, 06 Aug 2026 16:53:03 +0000 by zenon
Primate EOS Development Environment Setup Guide
This guide details the steps for configuring the local development environment for Primate EOS, a low-code development platform. The instructions focus on database configuration and initial service startup.
Key Primate EOS Modules
BPS: Business Process Suite for workflow management.
Coframe: Handles login authentication and authorization.
Gove ...
Posted on Tue, 28 Jul 2026 16:18:50 +0000 by jamesjohnson88
Configuring GitLab 13.1.11 to Support PlantUML Diagrams
System Requirements
GitLab Version: 13.1.11
PlantUML Version: 1.2023.10
Graphviz Version: 8.1.0
Deployment Architecture
PlantUML is deployed separately from GitLab on Anolis OS 7.9. The PlantUML server is compiled from source into a WAR package and deployed using Tomcat 10 with Oracle JDK 11.0.6. Graphviz is compiled and installed from source ...
Posted on Sun, 05 Jul 2026 16:44:00 +0000 by jp2php
Deploying Spring Boot Applications as WAR Files on External Tomcat
Configuring Maven for WAR Output
Modify the build configuration to change the artifact type. Set the packaging element to war within the POM.
<project>
<groupId>com.example</groupId>
<artifactId>enterprise-app</artifactId>
<version>1.0.0</version>
<packaging>war</packaging>
...
Posted on Tue, 30 Jun 2026 17:57:41 +0000 by snk
Creating Custom Foundational Docker Images
CentOS 7 Base ImageNetwork restrictions and misaligned configurations in public repositories make custom base images essential for streamlined workflows. Four configuration assets are required for this build.[root@host centos7]$ ls
custom-epel.repo custom-base.repo Dockerfile supervisord.cfg
DockerfileFROM centos:7.9.2009
LABEL maintainer="D ...
Posted on Sat, 27 Jun 2026 16:19:00 +0000 by teng84