Registry / web-framework / jetty-webapp

jetty-webapp

JSON →
library11.0.25javamavenunverified

Jetty web application support provides a lightweight servlet container for deploying Java web applications.

<dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-webapp</artifactId> <version>11.0.25</version> </dependency>
INSTALL
IMPORT
SIG · JETTY-WEBAPP
J
jetty-webapp
web-frameworkjavav11.0.25
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.

WebAppContext
org.eclipse.jetty.webapp.WebAppContext

Starts an embedded Jetty server that deploys a WAR file.

import org.eclipse.jetty.server.Server; import org.eclipse.jetty.webapp.WebAppContext; public class JettyExample { public static void main(String[] args) throws Exception { Server server = new Server(8080); WebAppContext webapp = new WebAppContext(); webapp.setContextPath("/"); webapp.setWar("path/to/myapp.war"); server.setHandler(webapp); server.start(); server.join(); } }
Debug
Known issues
breakingJetty 11.x requires Java 11+ and has breaking changes from Jetty 9.x/10.x, including package restructuring.
fix
Update imports from org.eclipse.jetty to org.eclipse.jetty.ee9 (or ee10) for servlet API changes.
affects: >=11.0.0
Upgrade
Version history
11.0.25latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jetty-webapp — mvn dependency:get jetty-webapp · libregistry