Questions tagged [jetty]

Eclipse Jetty is a widely-used async Java-based HTTP server and servlet engine supporting HTTP/1.0, HTTP/1.1, HTTP/2, HTTP/3, WebSocket, UnixSocket, and FastCGI protocols.

Jetty is a pure Java-based HTTP (Web) server and servlet engine with additional support for WebSockets, HTTP/2, HTTP/3, FastCGI, and many other integrations.

For list of all versions of Jetty, see Jetty Documentation: What Jetty Version?

Current versions are:

Jetty Version Java Min Version Servlet Supported?
Jetty 12 17 6.0 & 5.0 & 4.0 Pre-release / Supported
Jetty 11 11 5.0 Stable / Supported
Jetty 10 11 4.0 Stable / Supported
Jetty 9 8 3.1 End of Life
Jetty 8 6 3.0 End of Life
Jetty 7 5 2.5 End of Life
7156 questions
197
votes
4 answers

What's the difference between Jetty and Netty?

What is the main difference between Jetty and Netty? Netty is part of Jboss, but is it the default web server container? Does Netty support Servlets 3.0?
user646584
  • 3,621
  • 5
  • 25
  • 27
172
votes
3 answers

Tomcat VS Jetty

I'm wondering about the downsides of each servers in respect to a production environment. Did anyone have big problems with one of the features? Performance, etc. I also quickly took a look at the new Glassfish, does it match up the simple servlet…
Loki
  • 29,950
  • 9
  • 48
  • 62
149
votes
1 answer

Is there a way to pass JVM args via command line to Maven?

Possible Duplicate: Maven Jetty plugin - how to control VM arguments? In particular, I want to do something like this: mvn -DjvmArgs="-Xmx2000m -Xms1000m -XX:PermSize=512m -XX:MaxPermSize=512m" jetty:run -Pmyprofile Oh, and I would like to do…
Charlotte Tan
  • 2,452
  • 2
  • 20
  • 24
141
votes
15 answers

Debugging Scala code with simple-build-tool (sbt) and IntelliJ

What's the easiest way to debug Scala code managed by sbt using IntelliJ's built-in debugger? The documentation from "RunningSbt" from sbt's google code site lists commands for running the main class for a project or the tests, but there seem to be…
Matthew
  • 2,151
  • 2
  • 17
  • 13
86
votes
12 answers

websocket closing connection automatically

I'm building an application in java that has an embedded websocket server based on jetty. The client is the default websocket implementation in google chrome. Everything is working ok, only if there is no transfer between server and client after a…
Doua Beri
  • 10,612
  • 18
  • 89
  • 138
71
votes
6 answers

How to set server port with org.eclipse.jetty:jetty-maven-plugin?

I am currently setting the port via a jetty.xml file and I've been trying to figure out from the new documentation how to actually define an httpConnector through the Maven plugin's configuration. The docs on Eclipse's site seem a bit vague on it…
carlspring
  • 31,231
  • 29
  • 115
  • 197
63
votes
3 answers

How do I stop jetty server in clojure?

I am writing a web application using ring and clojure. I am using the jetty adapter for the development server and emacs/SLIME for IDE. While wrap-reload does help, run-jetty blocks my slime session and I would like to be able to start/stop it at…
Mad Wombat
  • 14,490
  • 14
  • 73
  • 109
62
votes
7 answers

java.io.IOException: Broken pipe

We are currently migrating a legacy application to Jetty. And I have somehow an exception regarding a broken pipe. Java 6 Jetty 8.1.8 Spring 3.2.0 I am trying to migrate a Glassfish web application to Jetty. In our testing environment we are using…
Cemo
  • 5,370
  • 10
  • 50
  • 82
60
votes
2 answers

How do you specify the root context in your tags in web.xml?

I would like to specify the root context of my Java web application in my WAR file. How can I do this using valid web-app XML in a web.xml file? Oh, yes I would like to do this in an application server agnostic way.
sewardrobert
  • 631
  • 1
  • 5
  • 5
59
votes
10 answers

How to control VM arguments for maven-jetty-plugin?

How to set VM arguments for Jetty run from maven-jetty-plugin? For example, I need to pass -Xmx arguments to Jetty run by the mvn jetty:run command.
Michal Bernhard
  • 3,853
  • 4
  • 27
  • 38
58
votes
5 answers

Serving static files with embedded Jetty

I'm trying to build a simple demo app with embedded Jetty that serves static files from a "html" directory that's a subdirectory of the current working directory. The idea is that the directory with the demo jar and content can be moved to a new…
HolySamosa
  • 9,011
  • 14
  • 69
  • 102
52
votes
9 answers

Executable war file that starts jetty without maven

I'm trying to make an "executable" war file (java -jar myWarFile.war) that will start up a Jetty webserver that hosts the webapp contained in the WAR file I executed. I found a page that described how to make what I'm looking for: However, following…
twilbrand
  • 1,330
  • 5
  • 19
  • 27
52
votes
5 answers

How to check heap usage of a running JVM from the command line?

Can I check heap usage of a running JVM from the commandline, I mean the actual usage rather than the max amount allocated with Xmx. I need it to be commandline because I don't have access to a windowing environment, and I want script based on the…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
50
votes
3 answers

Jetty, Tomcat, Nginx, Geronimo, Glassfish: I'm confused

As someone new to the Java EE ecosystem, I'm confused with these products which share a tremendous amount of keywords. And half of them come from Apache software foundation. Can someone address me with a brief distinctive explanation for each of…
parsa
  • 2,628
  • 3
  • 34
  • 44
49
votes
9 answers

Alternatives to Apache HttpComponents?

So, I've come to the conclusion that Apache HttpComponents 4 is one of the most overwrought APIs I've ever come across. Things that seem like they should be simple are taking hundreds of lines of code (and I'm still not sure resources get cleaned…
Dmitri
  • 8,999
  • 5
  • 36
  • 43
1
2 3
99 100