Registry / web-framework / tomcat-embed-core

tomcat-embed-core

JSON →
library11.0.18javamavenunverified

Core implementation of Apache Tomcat for embedding in Java applications, providing servlet container functionality.

<dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-core</artifactId> <version>11.0.18</version> </dependency>
INSTALL
IMPORT
SIG · TOMCAT-EMBED-CORE
T
tomcat-embed-core
web-frameworkjavav11.0.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tomcat
org.apache.catalina.startup.Tomcat

Start an embedded Tomcat server

import org.apache.catalina.startup.Tomcat; public class Main { public static void main(String[] args) throws Exception { Tomcat tomcat = new Tomcat(); tomcat.setPort(8080); tomcat.addWebapp("/", new File(".").getAbsolutePath()); tomcat.start(); System.out.println("Tomcat started on port 8080"); tomcat.getServer().await(); } }
Debug
Known issues
breakingTomcat 11.x requires Java 17 or later; older Java versions are not supported.
fix
Ensure your Java runtime is version 17 or higher when using Tomcat 11.x.
affects: >=11.0.0
Upgrade
Version history
11.0.18latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
tomcat-embed-core — mvn dependency:get tomcat-embed-core · libregistry