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
2 answers

Running OSGi Container Inside Embedded Jetty Web Container. Possible?

Working on a project that runs an embedded Jetty web server withing its infrastructure. We are looking at addings a new web application that would benefit greatly from allowing views to be plugged in using OSGi. Vaadin is our web framework of…
S73417H
  • 2,661
  • 3
  • 23
  • 37
3
votes
3 answers

Best way of restarting a jetty instance

I'm using start.jar and stop.jar to stop and start my jetty instance. I restart by calling stop.jar, then start.jar. The problem is, if I don't sleep long enough between stop.jar and start.jar I start getting these random ClassNotFoundExceptions and…
Jeff Yang
3
votes
2 answers

jetty-maven-plugin not adding JNDI datasource resource from Jetty.xml

I can't seem to get my datasource added using jetty-maven plugin. There are no errors thrown but when i look in the context the datasource has not been added. I have verified that the path to the file is correct and that its is parsing it(putting in…
Damien
  • 308
  • 4
  • 15
3
votes
1 answer

How to set up eclipse with GWT and (regular servlet) Jetty backend

Does anybody know how to set up a project in Eclipse with GWT and a jetty backend (regular web app, not app engine)? Or know of a good link (tried googling it, but no dice) I've been trying to set up this all evening, but just ran into a number of…
Tor P
  • 1,351
  • 11
  • 9
2
votes
2 answers

JUnit test starts Jetty, Jetty starts Spring, can test see spring application context

This is for some high level Web/Rest tests of my whole system that are being powered by Jetty/Spring. What I am trying to do is to have a completely self contained test that, Starts Jetty which starts the Application Application starts Spring Test…
sMoZely
  • 369
  • 1
  • 10
2
votes
1 answer

Gracefully stopping servlets before Jetty closes connections

In an embedded Jetty container I have a servlet which pushes data to the clients via long-polling, and I would like to inform the clients when the server is being shut down by sending them a message before their connection is closed. When a client…
Aldo
  • 536
  • 5
  • 23
2
votes
2 answers

How to configure Jetty to reload a WebAppContext when classes are changed

I'm developing a web application and I run Jetty as the development and testing environment when I develop under Eclipse. When I make changes to Java classes, Eclipse automatically compiles them to the build directory, but Jetty won't see the…
Guss
  • 30,470
  • 17
  • 104
  • 128
2
votes
1 answer

stopping/canceling disconnected GET request threads as soon as possible

I am using jetty, version 7.0.1 if that matters. Sometimes I have some quite long running tasks on a server which I would like to cancel/stop if the client disconnects (in case of GET requests, not e.g. POST file uploads). It seems this is not the…
user744959
  • 751
  • 1
  • 6
  • 13
2
votes
2 answers

Using "Persist" annotation in Tapestry is causing Problems with RunJettyRun

I am going through the Tapestry beginner tutorial at: http://tapestry.apache.org/tapestry-tutorial.html I just downloaded the template project and tried running it as is. The problem is adding the @Persist annotation to the property my application…
IcedDante
  • 6,145
  • 12
  • 57
  • 100
2
votes
1 answer

Jetty 8 Maven Plugin jetty:run-war not detecting WebApplicationInitializer

I'm having problems trying to get a Spring 3.1 Framework webapp using the Servlet 3.0 programmatic way to register the servlet running using the Jetty maven plugin. Here is my maven plugin definition (specifies an override webdefault.xml that has…
Shane Rowatt
  • 1,951
  • 3
  • 27
  • 44
2
votes
1 answer

maven-jetty-plugin jetty:run error

I downloaded a maven project I want to check. When I try to do a mvn jetty:run, there's a warning in the output. [INFO] Starting jetty 6.1.22 ... 2012-03-14 15:26:21.236:INFO::jetty-6.1.22 2012-03-14 15:26:21.334:WARN::Failed startup of context…
Amondra Loire
  • 21
  • 1
  • 3
2
votes
1 answer

How do I configure jetty-maven-plugin to log oejs, oejsh, oejsh packages

I am trying to configure jetty-maven-plugin 8.0.3.v20111011. I am running deploy war goal. with demon = true. I am not able to see logs from oejs, oejsh, oejsh packages. For getting logs I tried 2 ways. 1> setting log4j for plugin 2> setting stdOut…
2
votes
1 answer

Why is it a good idea, that the WebSocket Implementation got divided into subinterfaces?

In the new Jetty Versions, the WebSocket implementation was divided into several subinterfaces: http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/websocket/WebSocket.html Why was it a good idea to do that? And what are good…
justGoscha
  • 24,085
  • 15
  • 50
  • 61
2
votes
1 answer

Unable to re-use HSQLDB in Jetty between restarts

I'm using the maven-jetty-plugin to run a Spring application. Initially the datasource was declared inside Spring. Due to external constratins, I've moved it to JNDI. The jetty-env.xml section I use for local development is:
Robert Munteanu
  • 67,031
  • 36
  • 206
  • 278
2
votes
3 answers

Jetty 6: How to remove a Servlet?

I need to programmatically add and remove a servlet on a Jetty 6 server. While it is almost straighforward to add I cannot find an effective way to remove. For my purposes it is important to add and remove a servlet because it is associated to a…
alexroat
  • 1,687
  • 3
  • 23
  • 34