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
48
votes
3 answers

Jetty: To embed or not to embed?

What are the benefits of embedding jetty vs deploying your webapp(s) in jetty? If you are planning on deploying more than one web app, should you strictly stick with deploying a war file for each web app (as opposed to writing an embedded server…
Michael Balint
  • 2,255
  • 4
  • 25
  • 27
47
votes
5 answers

Jetty Run War Using only command line

Is it possible to use only the command line to Run jetty with only a specified war file and Context Path. Something like : java -jar $jettyHome/start.jar -Dwar.location=myApp.war -DcontextPath=/myApp OPTIONS=default,plus,jsp
gbegley
  • 2,609
  • 5
  • 29
  • 41
45
votes
2 answers

Eclipse RCP plugin + embedded Jetty + JSF

I made an RCP plugin with embedded Jetty as following: 1) In plugin.xml -> Dependencies, I have added the following: org.eclipse.equinox.http.jetty org.eclipse.equinox.http.registry org.mortbay.jetty.server javax.servlet 2) In plugin.xml ->…
wallE
  • 615
  • 11
  • 20
38
votes
10 answers

HTTP ERROR: 404 missing core name in path with solr

I am new to Solr, after installing it in ubuntu 8.10, when I was trying exampledocs to index , as per this link, I got this error: HTTP ERROR: 404 missing core name in path This is in Jetty. What shall I do, in order to solve this?
kshama
  • 1,637
  • 4
  • 18
  • 21
37
votes
1 answer

Use Jetty or Netty?

We're in the process of writing a high-performance server for processing messages. We've been using Jetty for several years and like it, but Netty looks like it has some cool features. In particular, it has support for asynchronous processing so a…
ccleve
  • 15,239
  • 27
  • 91
  • 157
37
votes
2 answers

How do I create an embedded WebSocket server Jetty 9?

I hate asking such a vague question, but I'm having a hard time finding a simple example. Here's what I have so far: public class JettyWebSocketServlet extends WebSocketServlet{ @Override public void configure(WebSocketServletFactory…
Alex Pritchard
  • 4,260
  • 5
  • 33
  • 48
37
votes
3 answers

Debug web app in IntelliJ, webapp built by maven, run by jetty

I'm using s/o code, it's a java webapp built by maven. The webapp is run by maven script, like below, and the app is run on localhost:8080, : org.mortbay.jetty
EyeQ Tech
  • 7,198
  • 18
  • 72
  • 126
36
votes
9 answers

How to run Jetty via Gradle in Debug Mode

Does anyone know how to configure the jetty gradle plugin to run in debug mode so that I can attach a remote debugger? I've tried setting the gradle and java opts to: -Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n ...but it…
JARC
  • 5,288
  • 8
  • 38
  • 43
36
votes
14 answers

"PWC6345: There is an error in invoking javac." error when using Jetty WTP plugin to deploy a JSP page on Jetty

I'm trying to deploy a JSP-page on Jetty, using the Jetty WTP plugin for Eclipse. But I get the error below. It looks like Jetty can't find javac. Is there any settings I have to do for the Jetty WTP plugin in Eclipse or how do I fix this? The JSP…
Jonas
  • 121,568
  • 97
  • 310
  • 388
35
votes
1 answer

Limit on the length of the data that a webserver can return in response to a GET request

I have a REST service running on jetty server that responds to GET requests with some resource data. So far the data that i retrieve has been in the order of a few kb. I am looking to use a similar REST service that could possibly return huge data,…
techuser soma
  • 4,766
  • 5
  • 23
  • 43
35
votes
1 answer

How does jetty handle multiple requests

I have been working with spring web applications using jetty/tomcat app server for around two years now, however the thing that eludes me still is how are multiple requests handled in these servers. I understand that spring is helpful in making…
Ankit Dhingra
  • 6,534
  • 6
  • 31
  • 34
34
votes
5 answers

Jetty Cross Origin Filter

I've configured Jetty's cross origin filter, but I continue to get the following error. Does anyone know what is wrong and how to fix it? Below the error message is my override descriptor (i.e. supplemental web.xml) Error: Origin…
Ari
  • 4,121
  • 8
  • 40
  • 56
34
votes
1 answer

Java 17's parallelStream() causes critical performance issues with code that runs fine in Java 16. Why?

I work on a Jetty web app that was running on Java 16. I tried to upgrade it to Java 17 but there were critical performance issues caused entirely by one call to parallelStream(). The only changes are the Java version bump from 16 to 17, --add-opens…
Robert Bain
  • 9,113
  • 8
  • 44
  • 63
34
votes
7 answers

How can I prevent spring-security from appending ;jsessionid=XXX to login redirects?

When an unauthenticated client requests a URL that requires a non-anonymous access level as defined in security-config.xml, spring security sends an HTTP redirect to our login page (e.g. /login). That's fine. The issue is that absent an existing…
cemerick
  • 5,916
  • 5
  • 30
  • 51
34
votes
4 answers

NoClassDefFoundError: org/w3c/dom/ElementTraversal

I installed Jetty 7 and configured it correcty for IdP Shibboleth following this guide: https://wiki.shibboleth.net/confluence/display/SHIB2/IdPJetty7Prepare But when i try to start Jetty I get this error: NoClassDefFoundError:…
Mustapha Aoussar
  • 5,833
  • 15
  • 62
  • 107