Tomcat 11: Lenient vs Strict Defaults, Side by Side
A side-by-side comparison of legacy Tomcat defaults and the strict defaults in Tomcat 11, showing which behaviors change and what to verify before you upgrade a Java web tier.
Loading…
Topic
51 posts about Java. Every summary links to the original.
See the idea
A side-by-side comparison of legacy Tomcat defaults and the strict defaults in Tomcat 11, showing which behaviors change and what to verify before you upgrade a Java web tier.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
JetBrains Academy offers a 60% discount on Hyperskill’s annual plan (USD 159.60) with code NOVEMBER60 valid until November 30. The plan includes 70+ courses and 400+ projects. A new course by Faisal Memon covers GenAI and AI agents for Java Spring Boot development, with a hands-on tutorial on using Junie in JetBrains Air. The LinkedIn Connected Apps plugin now has a clearer four-level system and progress tracker for coding and AI workflows. A video discusses preparing for the future of programming, and the Youth Coding Challenge on November 29 offers high school students a chance to attend an 11-day camp in Cyprus.
A critical security vulnerability named Java4Shell, tracked as CVE-2026-114938 and classified as a CWE-787 out-of-bounds write, was identified in the Base64 decoder of OpenJDK’s HotSpot JVM, affecting JetBrains Runtime bundled with all JetBrains IDEs, ReSharper, Toolbox App, and Gateway. The issue affects x86-64 CPUs with AVX-512 VBMI support, where malformed Base64 input can crash the IDE or potentially enable remote code execution, while ARM64 systems such as Apple Silicon remain unaffected. JetBrains has released updates for every supported release line that add the -XX:-UseBASE64Intrinsics VM option to disable the vulnerable intrinsic routine. Additionally, it provides a one-line workaround for those who cannot update yet. The IDE updates only cover the IDE process; users must separately update the Java runtimes used by their project builds, tests, and run configurations to their vendor’s fixed builds.
Red Hat JBoss EAP 8.2 Beta is now available, providing a cloud-native Jakarta EE 10 platform for modern enterprise workloads. The release adds early support for Java SE 25, which removes the legacy SecurityManager, requiring configuration changes. Automated container provisioning with WildFly Glow (Technology Preview) statically inspects deployable archives to calculate minimal runtime server profiles. An updated bootable JAR runtime packages application code with a trimmed JBoss EAP runtime for Red Hat OpenShift deployments. Security updates include OIDC frontchannel and backchannel logout, built-in authentication rate-limiting, and build-time Hibernate ORM bytecode enhancement for faster startup.
CVE-2026-114938 is a memory-corruption vulnerability in the hardware-accelerated Base64 decoder of Java runtimes on x86-64 processors with AVX-512 VBMI, affecting Java 17, 21, 25, 27, and Oracle Java 8 Performance Pack. The vulnerability allows malicious Base64 input to corrupt JVM process memory, potentially leading to a crash or remote code execution. TeamCity servers and build agents may use affected Java runtimes, but the vulnerability is not in TeamCity itself. The recommended fix is to update the Java runtime to a fixed build, such as 17.0.21.1 or 21.0.13.1, or to apply an interim JVM flag like -XX:-UseBASE64Intrinsics. TeamCity Cloud servers and JetBrains-hosted agents are not affected, but self-hosted build agents should be reviewed.
Default HikariCP configurations often cause Spring Boot applications on Red Hat OpenShift 4 to stop serving traffic due to exhausted or hung database connections. The guide explains how to configure HikariCP through application.properties, programmatic Java configuration, or application.yaml files. Key settings include fixed pool sizes, connection timeouts, max-lifetime, validation-timeout, and leak-detection-threshold. Five common production scenarios are described, including a single connection-adder thread blocking on network interruptions and container CPU throttling starving Hikari management threads. Troubleshooting tools include leak detection, access logs, and Prometheus metrics queries such as hikaricp_connections_pending. The conclusion recommends matching pool sizes to database capacity, setting connection lifetimes shorter than network timeouts, and ensuring container CPU limits provide adequate quota.
A critical Java vulnerability, CVE-2026-114938 (Java4Shell), was publicly disclosed on November 17, 2026, affecting Java runtimes used by many applications, including YouTrack Server. The vulnerability can be triggered only on servers with certain modern processors and could allow an attacker to crash the server or execute arbitrary code. YouTrack Cloud is not affected because its hardware does not allow the vulnerability to be triggered. YouTrack Server administrators should update to fixed builds 2026.2.19884, 2026.1.14193, or 2025.3.178461, or apply a temporary JVM workaround by disabling the UseBASE64Intrinsics flag. The workaround may slow some operations, and upgrading is recommended as soon as possible.
Spring Framework 5.3.x reached end of open source support on August 31, 2024, and CVE-2025-41249 affects both 5.3.18 and the final 5.3.39 release, leaving no free version to upgrade to. Moving to Spring 6 requires migrating from Java 8 to Java 17 and from the javax namespace to jakarta, a funded project for most teams. The pipeline uses a vulnerability-policy-gate task to evaluate dependency scan results and, when enabled, patches the pom.xml to replace the vulnerable spring-core artifact with a binary-compatible remediated build from Red Hat Lightwell. The pipeline also signs the resulting image with keyless signing via Red Hat Trusted Artifact Signer, pushes an SBOM into Red Hat Trusted Profile Analyzer, and performs a final image check with Red Hat Advanced Cluster Security. Event-Driven Ansible automates the entire response by listening for policy violations from Red Hat Advanced Cluster Security and triggering the remediation workflow without human intervention.
Java4Shell (CVE-2026-114938) is a critical memory-corruption vulnerability in OpenJDK’s Base64 decoder, scoring 9.2 on CVSS 4.0. The flaw affects OpenJDK 17.0.6+ on x86-64 processors with AVX-512 VBMI support, allowing remote attackers to send malformed Base64 data that overwrites heap memory. Calif demonstrated pre-authentication remote code execution against Keycloak, Jira, Confluence, JFrog Artifactory, Jenkins, and PingFederate. Cloudflare released six new WAF managed rules for paid plans that detect malformed Base64 input patterns, enabled by default in Log mode to avoid false positives. The WAF is an additional defense layer; the only complete fix is to update the Java runtime and restart affected services.
AI-generated code can pass functional tests while containing security vulnerabilities. Qodana’s static analysis of a Java app from the RealVuln Benchmark found 65 findings across 21 files, including a vulnerable XStream 1.4.7 dependency parsing untrusted XML from a cookie, a hardcoded fallback key in Spring configuration that could silently use a credential, and a transitive license policy issue with Hibernate. The XStream deserialization call takes input from a browser cookie without type allowlisting, potentially allowing unintended object instantiation. The hardcoded fallback in the legacy report bridge’s intake key would be used if the environment variable is missing, exposing a credential in source control. Each finding requires human review to assess reachability, production configuration, and appropriate fix, as static analysis provides starting points but not definitive exploitability.
The November 2026 Java Annotated Monthly covers JDK 28 developments, including Structured Concurrency finalization and a Simple JSON API incubator. Guest editor Piotr Przybył highlights Value Objects from Project Valhalla as a transformative feature for data handling. The issue reports that developer-reported double-digit weekly time savings from AI fell from 68% to 26%, and a study found AI-generated code fails to boost productivity due to downstream bottlenecks. Kotlin updates include the 2026 State of Kotlin report and KotlinConf 2027 in Kraków. The newsletter also features tutorials on virtual threads, GPU computing in Java, and security advisories on compromised eMudhra certificates.
Omi Health Tech, a Vietnam-based company, builds the Omi Health Platform (OHP) and Omi LGSP, which standardize clinical data from hospitals and connect it to the Ministry of Health and the National Data Exchange Platform. The company transitioned from a service-based model to a product-based model, a shift that required aggressive refactoring and ownership of architecture. Vietnam’s new data protection law and AI law necessitated updates to data-access layers, audit trails, and consent flows across multiple repositories on a tight timeline. The Java core of the platform, which maps and transforms clinical data, is schema-heavy and refactor-intensive, making IntelliJ IDEA’s refactoring depth such as multi-file refactors and Find Usages critical. For example, a regulatory update requiring explicit consent capture for patient data reads was implemented in days rather than weeks using IntelliJ IDEA’s Change Signature and Find Usages.
IntelliJ IDEA 2026.3 introduces JetBrains Air, a new layer for agentic development, and an extension that brings Java and Kotlin support to Cursor and VS Code. Debugging improvements include the ij-debugger agent skill, a Hibernate debugger, Spring Security diagnostics in HTTP responses, and Spring cache support in Spring Debugger (coming in 2026.3.1). The release adds AppGlass and supports Java 28, Jakarta Persistence 4, Hibernate 8, Scala updates, and Kotlin support for Spring Modulith. Users can perform quick tasks and edits without opening a project and use Git worktrees for parallel work and code reviews. The update also includes stability, performance, and usability improvements across the platform.
IntelliJ IDEA 2026.3 ships over 1,000 bug fixes and over 300 performance fixes, with a focus on performance, Java and Kotlin code intelligence, and core workflows. UI freezes have been removed in areas such as Spring Boot inlay hints, JPA entity analysis, and the debugger’s variable building. Indexing is lighter on large projects, and the IDE uses less memory through fixes like no longer keeping HiDPI images alive on the heap. JaCoCo is now the default coverage runner for new Java run configurations, matching the runner used by Gradle, Maven, and CI systems. The terminal now uses the ghostty emulator, the Plugin management UI merges Installed and Marketplace tabs into a single view, and Git worktrees now work in multi-root projects.
Java’s pinned version model and deeply nested transitive dependency trees make automated security patching difficult. Traditional update tools like Dependabot handle only direct dependencies, leaving the majority of the supply chain unpatched. Lightwell offers security-focused rebuilds of open source Java libraries to address vulnerabilities in transitive dependencies, such as a core Java framework zero-day flaw. The post outlines three integration strategies: manual discovery via the Lightwell catalog, targeted dependency analysis that generates a report of available rebuilds, and automated BOM generation that pins transitive dependencies to hardened versions. A reference script, pin-transitives.mjs, demonstrates how to produce a bill of materials that can be imported into Maven builds, with a comparison matrix showing trade-offs in setup effort and governance control.
In October 2026, eMudhra disclosed that the private keys of eight intermediate certificate authorities were weak and could be recovered from public data. The affected intermediate CAs had not issued any leaf certificates, but any software trusting those keys could accept forged certificates. While TeamCity is not directly vulnerable, it depends on the trust store of its Java runtime, which may still trust the compromised certificates. TeamCity releases 2026.2.2 and 2026.1.6 include a health report that flags affected trust stores on the server node, along with remediation instructions. Users must update the Java runtime on every server node and build agent, rebuild Docker images, review uploaded certificates, and update the TeamCity CLI to version 1.6.1 to remove all trust in the compromised eMudhra keys.
IntelliJ IDEA evaluated compact object headers, enabled by default in Java 27 through Project Lilliput and JEP 534, on a large JVM application. Tests compared headers on and off for the Welcome screen, Spring Petclinic at about 3,370 lines, and the IntelliJ IDEA monorepo at about 26.5 million lines. Resident set size showed no consistent reduction at identical -Xmx limits, because RSS includes heap headroom, metadata, JIT code, stacks, native buffers, and shared libraries. Modeled footprints for identical captured heaps fell about 6.3% for Welcome and Petclinic and 8.2% to 8.4% for the monorepo, depending on object shapes, field offsets, and eight-byte padding. The lowest tested heap fell from 400 to 376 MiB for Petclinic and from 1,888 to 1,568 MiB for the monorepo, while operation times and GC metrics trended better; authors advise measuring RSS, heap, and speed separately.
On October 17, 2026, security researcher reported that private keys for eight eMudhra intermediate certificate authorities were recoverable due to weak generation, enabling creation of seemingly trusted certificates. JetBrains assessed the impact across its product portfolio, including IDEs, Toolbox App, TeamCity, YouTrack, and Hub, many of which run on Java and trusted the affected certificates. The company has released or is preparing security updates, with fixes available for IDEs, Toolbox App, YouTrack, Hub, Datalore, and Junie CLI, while TeamCity, Kotlin, IDE Services, and MPS are in progress. Customers should install available updates, keep operating systems and runtimes updated, or remove the two root certificates (emSign ECC Root CA – G3 and AAA Certificate Services) from the Java trust store as a workaround. JetBrains is not aware of any exploitation against its customers and continues remediation across other affected products.
IntelliJ IDEA’s Java and Kotlin language support extension has reached its 1.0 stable release, now available for VS Code and Cursor editors. The extension is powered by IntelliJ IDEA’s language server and debug adapter, providing smart code completion, navigation, code analysis, refactoring, and build tool support for Maven, Gradle, and Bazel. It also offers powerful debugging capabilities including emulated breakpoints and async stack traces, along with JUnit test runner support. The 1.0 release resulted from close collaboration with the Cursor team, making Java and Kotlin a first-class experience in Cursor’s Agents Window with dedicated support for nullability and Spring Framework specifics. Starting with 1.0, the extension requires an IntelliJ IDEA Ultimate subscription but provides a 30-day free trial, and future updates will enable agents to call the LSP directly for faster AI-assisted development, with announcements pending for purely agentic licensing.
Netflix integrated JetBrains’ headless code-intelligence engine into coding agents Claude Code and Codex to address agents’ struggles navigating Java/Kotlin code across compiled JAR boundaries. The engine provides deterministic indexing of project source files and libraries, and Netflix built a daemon and CLI to make the LSP callable by agents, keeping the index warm across repeated calls. In benchmarks on two real codebases—an internal Spring Boot service and the open-source DGS Framework—agents using JetBrains intelligence were typically 20-30% more efficient in tokens and time, with up to 65% improvement for stronger models like Opus 5 at high effort. Correctness held steady or improved across all configurations, and the gains were consistent across every model and agent tested. Netflix plans to extend the same benchmark methodology to Python, TypeScript, and Go, as coding agents for those languages face similar problems.
The MongoDB Extension for Hibernate ORM is now generally available as a first-party, open-source library, giving Java teams a production-ready way to use familiar Hibernate APIs with MongoDB’s document model. Developers can continue using @Entity annotations, HQL, Criteria Queries, and Session APIs while building new applications or migrating existing Hibernate workloads from relational databases. The GA release adds JOIN support (INNER and LEFT OUTER) via standard HQL/JPQL syntax, optimistic locking with @Version, Spring Boot auto-configuration that auto-detects dialect and connection provider from the MongoDB JDBC URL, and clearer exception messaging and logging. The extension transparently translates Hibernate operations into MongoDB aggregation pipelines and requires Hibernate ORM 7.4 LTS. It also supports native embedded documents for faster reads and allows dropping into MongoDB’s native Query API for advanced operations like vector search and geospatial queries.
The best engineering reads, once a week.