Questions tagged [jetty-9]

Version 9 of Jetty, a widely used async java based http server and servlet engine supporting WebSockets, SPDY protocols, JSR356 (from 9.1), HTTP/2 (from 9.3).

Version 9 of Jetty, a widely used async java based http server and servlet engine supporting WebSockets, SPDY protocols, JSR356 (from 9.1), HTTP/2 (from 9.3).

Jetty versions

594 questions
4
votes
1 answer

org.eclipse.jetty.util.ssl.SslContextFactory$Client ClassNotFoundException upgrading to Jetty Server 9.4.16

I have a working application that's been using jetty-server version 9.4.15.v20190215. Due to a vulnerability scan that found issues in jetty-server dependencies, I looked into upgrading my app to use jetty-server 9.4.19-v20190610, the latest release…
Cosimo
  • 2,846
  • 1
  • 24
  • 26
4
votes
1 answer

How to get Solr and CKAN to run on Ubuntu 18.04 after recent solr-jetty updates?

Problem After doing some updates Jetty can no longer find Solr when trying to run CKAN on Ubuntu 18.04. A fresh install of CKAN is not working in development or prod. This is using the 3.6.2+dfsg-18~18.04 package. I can tell Jetty9 is running but it…
user3366016
  • 1,267
  • 2
  • 18
  • 31
4
votes
2 answers

Upgrading to jetty 9.4 replacing the HashSessionManager

After upgrading to jetty 9.4 I notice a ClassNotFoundException for org.eclipse.jetty.server.session.HashSessionManager. I think I need to use a FileSessionDataStore but I don't see how that is suppose to be set on a SessionHandler. The configuration…
Luke
  • 884
  • 8
  • 21
4
votes
2 answers

After Jetty Update to 9.4.x: Missing Constraint: Require-Capability: osgi.extender; filter:="(osgi.extender=osgi.serviceloader.processor)"

After updating from Jetty 9.3.x to 9.4.x I'm getting the following validate message when I launch my OSGi Framework launch: Missing Constraint: Require-Capability: osgi.extender; filter:="(osgi.extender=osgi.serviceloader.processor)" Missing…
flavio.donze
  • 7,432
  • 9
  • 58
  • 91
4
votes
0 answers

How to drop HTTP connection if request body is too big?

When I say drop connection I mean actually closing the socket without reading any more bytes. I am trying to prevent a DoS attack where the attacker is trying to make a lot of HTTP requests that upload very very large files. For my purpose, I will…
Alvin
  • 10,308
  • 8
  • 37
  • 49
4
votes
1 answer

Implement gzip compression on messages exchanged between Websocket Server and Client Endpoints written in Java

I don't see specific documentation around javax.websocket.Session's getBasicRemote() and getAsyncRemote()'s sendText() and sendBinary() methods as to how one could use gzip compression to transfer messages. I am writing a high performance messaging …
4
votes
0 answers

Jetty Runner root redirect to context

I am running my application using jetty-runner.jar. For my application I am using context path for example /app. The problem is: If I open root I am getting No context on this server matched or handled this request. Contexts known to this server…
Milos Miskone Sretin
  • 1,748
  • 2
  • 25
  • 46
4
votes
1 answer

How to remove trailing slash from embedded Jetty URLs?

I use embedded Jetty 9.3.8.v20160314 from Scala (Scala is incidental here, this is a pure Jetty question), configured like this: val loginService = new RepoLoginService(usersRepository, signInsRepo) val server = new…
François Beausoleil
  • 16,265
  • 11
  • 67
  • 90
4
votes
2 answers

mvn:jetty unable to load WebAppContext

I have a weird situation, when trying to run jetty from eclipse. I updated my old project from jetty 7 to jetty 9.3.7.v20160115. But, now when starting the jetty:run with m2eclipse I got the following exception: java.lang.IllegalArgumentException:…
markusin
  • 51
  • 1
  • 5
4
votes
1 answer

Out Of Memory Error with larger file uploads

I've had some issues with larger file uploads to my jetty server Trace. I'm uploading as Multipart/form-data, and fetching the file from the request using scalatra's FileUploadSupport (as below) class foo extends ScalatraServlet with…
Richard
  • 43
  • 4
4
votes
1 answer

Accessing HttpSession inside an annotated @WebSocket class on Embedded Jetty 9

How can I access a HttpSession object inside an annotated @WebSocket class in Jetty 9? I found how to do it using @ServerEndpoint annotation, like here: HttpSession from @ServerEndpoint Using the @WebSocket annotation, like in the class bellow, how…
reinaldoluckman
  • 6,317
  • 8
  • 42
  • 50
4
votes
2 answers

Method to have both HTTPS and HTTP with embedded Spark server?

I have small embedded server supporting HTTPS using Spark. I also want to support/catch some HTTP calls; e.g. like a help page and some redirections. For example a help page: http://localhost:8088/help .... renders ....…
will
  • 4,799
  • 8
  • 54
  • 90
4
votes
1 answer

Using Jetty's proxy in standalone Jetty application

I'm investigating using Jetty 9 as a proxy, using standalone Jetty, not embedded Jetty. I've looked for help in many places: Most of these are related to embedded Jetty: How to create Proxy Server using jetty8? Jetty ProxyServlet with SSL…
mnd
  • 2,709
  • 3
  • 27
  • 48
4
votes
1 answer

Jetty 9: No Spring WebApplicationInitializer types detected on classpath

I am trying to switch from jetty 7.6 to jetty-9.2.1. I made the required configuration changes. But I am continuously getting "No Spring WebApplicationInitializer types detected on classpath" message while initializing the jetty server. My…
Anuj Khandelwal
  • 835
  • 2
  • 15
  • 31
4
votes
2 answers

Can i run WebAppContext with WebSocketHandler in same instance?

is it possible to run WebSocketHandler and WebAppContext together? I'm using latest version 9.2.1.v20140609. I tried configuration below, but on Websocket call to localhost:8080/ WebAppContext intercepts call. Here is my Launcher: public static void…
message
  • 4,513
  • 2
  • 28
  • 39
1 2
3
39 40