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
3
votes
1 answer

How to Configure / Enable SSL for HTTPS and steps to create Windows Service?

I have currently deployed a war file in my Jetty 8.x webapps container. I can start the Jetty server and connect to my server using HTTP. I want to be able to connect using HTTPS. What is the easiest way to enable HTTPS on Jetty 8.x? I am…
Sandy Dalal
  • 31
  • 1
  • 1
  • 2
3
votes
2 answers

Embedded Jetty 8.x / Spring MVC / WebApplicationInitializer

Does anyone have a working sample of the following: Embedded Jetty 8.x app Using Spring MVC Zero XML configuration (i.e. using a Spring WebApplicationInitializer on the Servlet side and annotations/java configuration on the Spring side) I have…
Paul
  • 31
  • 3
3
votes
2 answers

Getting maven to start jetty (Tapestry Tutorial)

I'm trying to work through the Tapestry tutorial. I think I got everything set up right and so far so good but I get to the part where the tut rather glibly states: Change into the newly created directory, and execute the command: mvn…
Ron Tuffin
  • 53,859
  • 24
  • 66
  • 78
3
votes
1 answer

Debugging with Jetty Maven Plugin in Eclipse on multi module project: Compilation unit not on the build path

I want to run a multi-module project in Eclipse with the Jetty Maven Plugin. The project runs just fine, and running mvn jetty:run-exploded the configuration files get processed correctly. Maven…
Daniel N.
  • 831
  • 1
  • 7
  • 13
3
votes
1 answer

Jetty+Jersey servlet+Weld: Weld injection not initialized, what is wrong?

I'm trying to migrate from Glassfish+Jersey+Weld to Jetty. I have such a setup: gist of pom.xml, web.xml and Java launcher. Application seems to start fine, but when serving any request I see that the field that should be injected by Weld (logger)…
Victor Sergienko
  • 13,115
  • 3
  • 57
  • 91
3
votes
0 answers

I need help in understanding the relationship between client certificate authentication and loginservice using jetty embedded

I am using jetty 7 embedded in in my Java WebApp project. I have setup SSL and the next step is to handle Client Certificate authentication. In the web.xml I have specified: CLIENT-CERT Test…
mpjjonker
  • 917
  • 1
  • 6
  • 28
3
votes
1 answer

Jetty - Basic Auth sending 403 instead of 401 while configuring Gerrit

I have a war file (specifically, gerrit.war), that expects the container (specifically, jetty) to handle basic HTTP authentication and pass that information down to the webapp. So I don't have access to the code or to the web.xml file. I'm…
Roy Truelove
  • 22,016
  • 18
  • 111
  • 153
3
votes
3 answers

Jetty Bind DataSource in JNDI Context

I would like to bind DataSource object to (eclipse) jetty's JNDI context programatically. I need for testing purpose. Here's a piece of code I have now: server = new Server(SERVER_PORT); webAppContext = new…
Opal
  • 81,889
  • 28
  • 189
  • 210
3
votes
1 answer

Is there any method to obtain in a servlet all valid session keys values on jetty?

I have a jetty container with two different servlets, lets call then A and B. In a special occasion a qr code code appear in servlet A (the user is already logged in and is using his desktop) and the user by using his mobile device read this qr…
Winter
  • 1,896
  • 4
  • 32
  • 41
3
votes
3 answers

Registering servlet in Jetty in OSGi environment (Class loading problems)

I have an OSGi application with embedded Jetty 8.1.1 server. When I run my application as a monolit (no OSGi environment) I can successfuly register servlets by calling org.eclipse.jetty.servlet.ServletContextHandler.addServlet(String className,…
Michal Vician
  • 2,486
  • 2
  • 28
  • 47
3
votes
2 answers

Jetty error on closing context: java.lang.IllegalStateException: IDLE,initial

I'm having trouble with an async jetty response! I'm using an embedded Jetty to interface with a reactor loop and collect responses as the loop process them, and then finish Jetty requests as the answers appear in a collector hash. I'm seeing an…
nflacco
  • 4,972
  • 8
  • 45
  • 78
3
votes
2 answers

Spring: How to inject a property with a non-setter method?

Is it possible to inject a property bean through a method with a signature doesn't start with set? Specifically, I'm trying to use Spring to configure an embedded Jetty instance and I need to be able to inject a servlet bean via an addServlet()…
HolySamosa
  • 9,011
  • 14
  • 69
  • 102
3
votes
3 answers

Correct way of doing multithreading inside Tomcat/Jetty

Here is my use case. Client sends a request to server. The server need to do the following 2.a. Make a network call to get some data (D). 2.b. Create a processor (P) to process the data. P processes D and sends the response back to…
Soumya Simanta
  • 11,523
  • 24
  • 106
  • 161
3
votes
2 answers

Which way is best, to implement Comets in a Java Servlet

I want to write an aplication that uses the Comets pattern - that is a request that can be responded to when an event occurs on the server, rather than only as a response to an immediate request. What is the easiest application server to use for…
Ankur
  • 50,282
  • 110
  • 242
  • 312
3
votes
0 answers

Jetty closing async http requests properly and not leaving horrible amounts of sleeping threads around

My application uses embedded Jetty as the http interface, and it seems to hang after 2-3 weeks of uptime. Upon inspection there were a lot of sleeping threads, so I ran it locally with jvisualvm and pounded it out with pyplot and bunch of simple…
nflacco
  • 4,972
  • 8
  • 45
  • 78