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

Exclude lib/ext From Jetty Classpath For Specific Web Apps

I'm currently in the process of creating a web service to be deployed onto an existing Jetty 9 server. I decided to use maven to handle the dependency management for this application and it is creating a bit of a problem. When I try to start the…
pbuchheit
  • 1,371
  • 1
  • 20
  • 47
3
votes
1 answer

How to get the bytesIn/bytesOut on a request basis using Jetty Client

I am using Jetty Client 11 and would like to compute for each request the sent/received bytes. I am using High Level HttpClient . I have read this documentation but I don't see any information on how to do…
pmpm
  • 705
  • 1
  • 5
  • 20
3
votes
0 answers

Jetty error "IllegalStateException: No Method: ... on class ...Configuration$ClassList"

I am using an external jetty version 9.4.35.v20201120. I am getting this error in my Eclipse. Not sure why! Researched a lot but not able to fix it. Can any help here? Exception in thread "main" java.lang.IllegalStateException: No Method:
Ravish Raj
  • 31
  • 4
3
votes
0 answers

java.lang.StackOverflowError when initializing OkHttpClient

I am trying to initialize Okhttpclient from my webapp which is running inside a Jetty container (jetty-distribution-9.4.32.v20200930). Everything runs fine if I am on OkHtp 3.X (3.14.9). After I upgraded to OkHttp 4.9.0 (OkHttp 4.X changes…
Sumit
  • 71
  • 1
  • 5
3
votes
2 answers

StackOverflowError after upgrading to RestEasy 4.5.x

After upgrading to RestEasy from 4.4.2 to 4.5.2, I got a StackOverflowError when returning a response with an entity InputStream. Returning a basic 10MB stream fails. Bug reproductible with very basic code: @Path("/") public class TestResource { …
Lotfi
  • 1,205
  • 8
  • 18
3
votes
1 answer

How to use Windows Certificate Store with Jetty?

I'm trying to use the Windows Certificate Store from Jetty for HTTPS communication. After setting up a web-application on client site, it should be easier for the client to update an expired certificate in the Windows Certificate Store than having…
flavio.donze
  • 7,432
  • 9
  • 58
  • 91
3
votes
2 answers

Jetty(9.4.12) : Failed startup of context o.e.j.w.WebAppContext@2af004b webapp/, UNAVAILABLE

I'm using jetty (9.4.12) to serve my webapp on macOS (Java 11). Although the Jetty has started, the service remains unavailable. I have used the same War file as always, but the only difference being, I have updated Java from version 10 to 11. Any…
RohitB97
  • 440
  • 2
  • 6
  • 16
3
votes
2 answers

Jetty, "No multipart config for servlet" problem

I'm writing handler for file transfer. The request is multipart HTTP message. The message is correct - tested on other servers. The problem is "java.lang.IllegalStateException: No multipart config for servlet" on getParts() call. The test…
bw_dev
  • 775
  • 1
  • 7
  • 17
3
votes
0 answers

org.eclipse.jetty.io.EofException of Jetty websocket

I utilize Jetty (9.4.1) websocket for 2 ways communication between client and server. On Client side, the messages 'onerror' and 'onclose' of WebSocket are listened, so that when there is a problem, the client will make a new connection. On…
Khoa Bui
  • 733
  • 1
  • 7
  • 15
3
votes
2 answers

How to configure embedded Jetty to use LdapLoginModule?

I have the following initialization for my Jetty Servlet. HashLoginService works however I the LdapLoginModule is not connected to JAASLoginService, "ldaploginmodule" refers to the default ldap-loginModule.conf which I want to skip and pass all the…
Marc
  • 442
  • 7
  • 15
3
votes
0 answers

Jetty 9 + Java > 8u74 always allocates maximum (-Xmx) memory on Linux?

If I start a Java application using jre 8u74 on Linux using -Xmx512m the memory is not allocated immediately, the memory is allocated if Java needs it. So it can stay below the 512 MB limit if not necessary. This is what I would expect. On Java…
Bruno Ranschaert
  • 7,428
  • 5
  • 36
  • 46
3
votes
2 answers

How to configure async timeout in embedded jetty using spring boot application

I am using an embedded jetty container using spring boot. If my request take too long, Jetty fails on 503. In jetty logs I see this: Dispatch after async timeout So, I assume the async timed out. However, I couldn't find where to update this timeout…
YaOg
  • 1,748
  • 5
  • 24
  • 43
3
votes
2 answers

Does Jetty's httpClient.setResponseBufferSize() method do anything?

I'm building a simple proxy server using Jetty's HttpClient. I am using Jetty version 9.3.10.v20160621 on Java 1.8.0_45. I have a situation in which I do a GET on a resource which will return a response that is approximately 3.5M in size (I…
gilbertpilz
  • 1,708
  • 20
  • 30
3
votes
1 answer

Jetty publish endpoints on multiple TCP ports

We are using Jetty 9.3 embedded and publishing multiple webservice Endpoints (using Endpoint.publish). I'm however unsure how to publish some of them on a different TCP port. Endpoint publishing: endpoint =…
Mattias Isegran Bergander
  • 11,811
  • 2
  • 41
  • 49
3
votes
1 answer

Camel-Jetty http proxy + large response data casue issue: Buffering capacity exceeded

jetty expert, I got error when getting back large data via camel-jetty as http proxy, any experience/idea/suggestion are welcome, thanks in advance. RouteBuilder code:…
Lori Sun
  • 61
  • 6