Questions tagged [undertow]

Undertow is a high performance non-blocking webserver that is the new web server in Red Hat's WildFly.

Website: http://undertow.io/

526 questions
4
votes
1 answer

Integrating Spring MVC Spring Security with Undertow web container

With Undertow breaking scalability records in some of the benchmarks very little information is available to how to migrate Spring MVC +Spring Security project to this new container from Tomcat. Can anybody provide some pointer as to how to proceed…
Rohitdev
  • 866
  • 6
  • 15
4
votes
2 answers

Use Undertow to serve AngularJS

I would like to use Undertow as a simple web server for serving an AngularJS application. The rest services needed by the AngularJS application is served by Apache Camel so I would only need to serve the Angular App using Undertow. I have read the…
P3anuts
  • 461
  • 1
  • 9
  • 24
3
votes
1 answer

Keycloak startup fails (undertow request failed HttpServerExchange)

I'm currently trying to get a standalone installation of Keycloak up and running. My setup is a Windows Server 2019 and I tried multiple versions of Keycloak including 12.04 and 18.0 (wildfly). I tried both JRE 8 and JRE 11 with the same…
dnns
  • 180
  • 6
3
votes
0 answers

Spring-boot - Undertow throws UT010029: Stream is closed

I have a spring-boot service in production that receives data via a REST interface, does some calculations, and stores the data to DB. Data is incoming very constant and nearly every day at midnight I see the time for processing the requests…
hecko84
  • 1,224
  • 1
  • 16
  • 29
3
votes
1 answer

Could not handle FileTooLargeException in @RestControllerAdvice after enabling jwt in spring security

I have spring boot application with undertow container. There is a rest controller that accepts file that look like following: @ResponseStatus(HttpStatus.CREATED) @PostMapping(value = {"/v2/upload-csv"}, produces =…
Nikita Medvedev
  • 153
  • 1
  • 6
3
votes
2 answers

How to set samesite cookie on WildFly 20?

I need to set same site cookie attribute to Strict on WildFly20 server responses. I need to do it via server configuration. Any help ??
Amit P
  • 467
  • 6
  • 20
3
votes
0 answers

Trying to switch tomcat to undertow, getting No "ServletContext set" error

I'm using spring-boot-starter-web package which includes Tomcat as a default implementation of a servlet. As far as I know I need to exclude spring-boot-starter-tomcat and enable spring-boot-starter-undertow to make it work. (Have to say that with…
h.roobun
  • 31
  • 3
3
votes
1 answer

How to rewrite a RewriteValve for Undertow / JBoss 7.2 EAP?

I'm migrating from JBoss 6.4.3 to JBoss 7.2 and saw a Valves are no longer supported warning during deployment. This came from a jboss-web.xml file with: org.jboss.web.rewrite.RewriteValve ...and a…
Steve Chambers
  • 37,270
  • 24
  • 156
  • 208
3
votes
1 answer

How to stop Undertow triggering warnings from gVisor in Cloud Run

Recently my Undertow application is triggering Cloud Run to report the following: Container Sandbox Limitation: Unsupported syscall setsockopt(0x13,0x1,0xa,0x3e05747fe5a0,0x4,0xfc1abc10). Please, refer to https://gvisor.dev/c/linux/amd64/setsockopt…
mgenereu
  • 33
  • 3
3
votes
1 answer

Spring Webflux: How to use different thread for request and response

I'm using Spring Webflux and as I understand it, by using this, the thread used for receiving request and the one used for response should be different. However, whether I use netty or undertow, I end up using the same thread. My app is a simple…
yhware
  • 502
  • 3
  • 13
  • 26
3
votes
2 answers

Configure HTTP Headers in Wildfly 10

Is there a way to configure the Http Headers that Wildfly(10 or more) sends to the client only to configure the following: HTTPS Strict Transport Security (HSTS) X-XSS-Protection X-Frame-Options Strict-Transport-Security …
3
votes
2 answers

How to return a file to download in Java using Undertow?

I am trying to allow my game client to download the cache needed for the client to run. Inside of my game web server I am doing this: @RouteManifest(template="/cache", method="GET") public class APICacheRoute extends…
Jaquarh
  • 6,493
  • 7
  • 34
  • 86
3
votes
1 answer

Where to put jboss-web.xml for ejb-jar?

We have the following situation: We have a SOAP WebService that is implemented using JBossWS. It is an EJB inside an EJB JAR inside an EAR. We have set up a second dedicated server with a dedicated port inside the undertow subsystem of Wildfly. We…
Philippe Marschall
  • 4,452
  • 1
  • 34
  • 52
3
votes
2 answers

Is it possible to set up Undertow to serve Spring REST endpoints?

My main aim is to set up Redhat's Undertow embedded in my app without any web.xml and without Spring Boot. Undertow looks like it's close enough to a servlet container to fulfill my requirements and at the same time super-performant and lean. As far…
Adam
  • 5,215
  • 5
  • 51
  • 90
3
votes
0 answers

Can Spring Boot load new letsencrypt certificates without shutting down?

Can Spring Boot load new letsencrypt certificates without shutting down? I imagine that this may depend on which server it is embedding (Undertow, tomcat, jetty, etc.)?
Ole
  • 41,793
  • 59
  • 191
  • 359