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

Jetty webapp continues to grow into heap space: (OutOfMemoryError Java heap space)

I have a memory leak in my Jetty webapp (9.3.6) (java.lang.OutOfMemoryError: Java heap space error). A quick note for the moderators, this is NOT a PermGen problem which seems to have documented solutions. I tried a number of SO searches and this…
Sonny
  • 2,103
  • 1
  • 26
  • 34
3
votes
1 answer

Configuring SSL with Jetty 9

I have spent the better part of the day on this and so far have been unable to get Jetty 9 configured to serve over HTTPS correctly. This is only for development purposes so I have generated a keystore file that I am attempting to use with Jetty. I…
Casey
  • 12,070
  • 18
  • 71
  • 107
3
votes
1 answer

How to use files outside of war file on jetty server?

I want to use some files outside my war file. It is located in /opt/jetty/webapps Let's say I want to put some files into /opt/jetty/resources and use them from my project. How can I access them from java code? When I use a full path in the…
LEQADA
  • 1,913
  • 3
  • 22
  • 41
3
votes
0 answers

Jetty 9.3.3: ClosedChannelException when using HTTPS

I am using Jetty HTTP client to send request via HTTPS, I configured the HTTP client to use SSL as the following: httpClient = new HttpClient(new SslContextFactory()); httpClient.setFollowRedirects(false); httpClient.start(); Request request =…
sabrina2020
  • 2,102
  • 3
  • 25
  • 54
3
votes
1 answer

Jetty sends different SSL certificate than what's configured in keystore

Jetty 9.3.1.v20150714 configured with a keystore containing 3 certificates: server's certificate, CA cert and GeoTrust root cert. Using keytool -list -keystore jetty/etc/keystore -storetype pkcs12 shows it has these certs - Keystore type:…
Kof
  • 23,893
  • 9
  • 56
  • 81
3
votes
2 answers

jetty java.security.UnrecoverableKeyException: Cannot recover key

I am trying to replace self signed jetty certificate by signed one. I replaced 2 files jetty.crt and jetty.key.Run 2 commands : openssl pkcs12 -inkey jetty.key -in jetty.crt -export -out jetty.pkcs12 keytool -importkeystore -srckeystore jetty.pkcs12…
linuxsky
  • 31
  • 2
  • 5
3
votes
1 answer

Server-sent events (SSE) with Jetty (programatic setup)

I have problems setting up a SSE environment with Jetty. I use Chrome (44.0.2403.107 m) and FF (39.0) as client browsers. I created a servlet in Jetty (see below) and used a WebAppContext to make it available programatically. I also tried to use the…
ThomasD
  • 131
  • 1
  • 6
3
votes
0 answers

Jetty9 for url-rewrite

Hi I am using the jetty7 for url-rewriting so i have modified my jetty.xml file according to the url http://wiki.eclipse.org/Jetty/Feature/Rewrite_Handler And i am using intelij idea for development.
Shashi Dk
  • 174
  • 2
  • 15
3
votes
0 answers

IntelliJ debug config for remote Jetty server

I'm trying to setup a debug configuration in IntelliJ to remotely connect to a running Jetty server. Setup is: Host machine where IntelliJ is running is Mac OS X Jetty is running inside a Vagrant managed guest VM on my Mac Per IntelliJ's…
lostdorje
  • 6,150
  • 9
  • 44
  • 86
3
votes
0 answers

Embedded Jetty 9 handle one request at a time

I am using jetty 9 in embedded mode and even though i have given a threadpool of 500 the server still just handle one request at a time. What am i missing ? JAVA CODE: // here i expect all thread name log to print instantaneously but they…
Bhuvan
  • 4,028
  • 6
  • 42
  • 84
3
votes
1 answer

"Invalid keystore format" on setting keystore for type "JCEKS" for symmetric key encryption

I am trying to use symmetric encryption for securing the communication on jetty-9 using java-8. The cipher suite for this purpose I am using is "TLS_PSK_WITH_AES_128_GCM_SHA256". The implementation for this cipher suite is provided by third party…
3
votes
1 answer

Jetty downgrade attack prevention and other security risks

I have a Jetty server (9.2.4) and scanned it using SSL Labs tool to evaluate vulnerabilities. One that came up was "Downgrade attack prevention: No, TLS_FALLBACK_SCSV not supported". Is there some settings I can use to turn this on? Jetty server is…
3
votes
2 answers

How to programmatically enable directory browsing for a particular path in Jetty 9.x?

Is it possible to programmatically enable directory browsing for a particular path in Jetty 9.x (and if "yes" -- how)?
carlspring
  • 31,231
  • 29
  • 115
  • 197
3
votes
1 answer

Redirecting root context path or binding it to a servlet or mapping it with a welcome-file

I am using Jetty-9 in embedded mode and need only one web application. Consequently I would like the root URL to go to the homepage of that application, i.e. something like http://localhost:4444/ should end up in a servlet. I start out…
Harald
  • 4,575
  • 5
  • 33
  • 72
3
votes
0 answers

Jetty 9.2.2 JDK 1.7 Cargo Daemon MultipleException AnnotationConfiguration.scanForAnnotations

Jetty Version: jetty-distribution-9.2.2.v20140723 JDK: 1.7.0_65-b17 I am using the Cargo Daemon with the cargo-jetty-7-and-onwards-deployer I have updated the asm jars to 5.0.3 as suggested by other answers. But I am still receiving the below…