# Jetty

Jetty is a lightweight, highly scalable, Java-based web server and Servlet engine that serves websites and web applications with strong protocol support for developers and self-hosters who need reliable, embeddable. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5136/jetty

## Description

Jetty is a lightweight, highly scalable, Java-based web server and Servlet engine that serves websites and web applications with strong protocol support for developers and self-hosters who need reliable, embeddable hosting.

## Platform availability

Available on 0 of 10 platforms.

## Health score

66/100 (Good), based on 4 of 4 factors.
- Maintained: 100 (last commit 5 days ago)
- Popular: 72 (4,101 GitHub stars)
- Easy to install: 15 (0 install platforms, install notes)
- Light to run: 30 (4 GB minimum RAM)

## Links

- GitHub: https://github.com/eclipse/jetty.project
- Docker Hub: https://hub.docker.com/_/jetty
- Official website: https://jetty.org/
- Documentation: https://jetty.org/docs/

## Common questions

### How do I make Jetty use a specific port?

Use --module=http and set jetty.http.port to a free port number, such as 9876, when starting Jetty. If you skip this, Jetty may not be reachable at the web address you expect.

### Why does Java fail to start Jetty?

Start Jetty with java -jar $JETTY_HOME/start.jar, where $JETTY_HOME points to the Jetty install path. If that path is missing or wrong, Java cannot find start.jar and Jetty won't start.

### How do I deploy a web app WAR to Jetty?

Create a Jetty base directory, run start.jar with --add-modules=http,ee11-deploy, copy the .war into webapps, and run start.jar again.

### How do I find documentation for an older Jetty release?

Jetty documentation is split by major version. Documentation for earlier releases is available in Maven Central.

### How do I enable SSL or HTTP/3 in Jetty?

Include the required modules and use --approve-all-licenses once. Without that, Jetty may refuse to start the extras because their licenses have not been accepted.

### How can I build Jetty from source quickly?

Clone the jetty.project repository, enter the jetty.project directory, and run mvn -Pfast clean install. The fast build bypasses tests and other checks.

---
Source: Our Local Host (https://ourlocalhost.com/app/5136/jetty), the self-hosted and open-source app directory.
