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
3
votes
0 answers

Undertow XNIO I/O thread consistently eat CPU

I observed my application (based on undertow) constantly eat CPU percentage after running a while: In the end I found if I suspend one of the XNIO I/O thread the CPU percentage will be released. The stack frame after suspended the I/O thread: The…
Gelin Luo
  • 14,035
  • 27
  • 86
  • 139
3
votes
0 answers

Disable Undertow/Wildfly from generating JSESSIONID cookie

I have an application build with JavaEE7 and running in development via embedded Wildfly 9.0.2.Final as a maven plugin to startup…
Irahgel
  • 31
  • 2
3
votes
2 answers

Spring Boot with Embedded Undertow behind AWS ELB - HTTP to HTTPS redirect

I'm running a Spring boot (Jhipster/Undertow) application on port 8080 on an AWS EC2 instance. I have an AWS ELB configured to redirect 80 -> 8080 443 (SSL termination happens here) -> 8080 The application uses Spring Security and if you user…
Rob
  • 1,037
  • 1
  • 13
  • 20
3
votes
2 answers

How to run undertow java app with docker

I am using undertow for my applications with docker. I am able to do the following create fat jar create docker image from that Run that docker image Listing on 8080 and added EXPOSE 8080 in Docker file curl my url from INSIDE the CONTAINER , curl…
vimal prakash
  • 1,503
  • 1
  • 22
  • 38
3
votes
2 answers

Calling a abstract method from a callback inside a abstract class

I am using undertow as my HTTP library and want to verify the JWT token and HTTP method of every request. I don't want to implement the verification in every HttpHandler. Is this the right way to do it? Handler.java public abstract class Handler…
tomwassing
  • 925
  • 1
  • 10
  • 30
3
votes
1 answer

Custom web app authentication with WildFly

I need to create a custom web app authentication for my Java EE application running on a WildFly 9 server. I have found few information about how to do it in the undertow website documentation. What I have done so far is to create a…
cheb1k4
  • 2,316
  • 7
  • 26
  • 39
3
votes
1 answer

Using a letsencrypt certificate in a java web server

I opted to use acme4j to create a letsencrypt certificate. So far it seems to have worked perfectly and I have some java code that creates a registration, responds to a challenge an ultimately presents me with a x509 certificate for my domain…
pomo
  • 2,251
  • 1
  • 21
  • 34
3
votes
1 answer

How to handle exceptions thrown from Undertow worker threads?

I have a web service running embedded Undertow, and some of the handlers make use of the common Undertow pattern of offloading requests to worker threads: if (exchange.isInIoThread()) { exchange.dispatch(this); } This is great for performance,…
Jared
  • 2,043
  • 5
  • 33
  • 63
3
votes
0 answers

Using undertow handler chaining, how do I catch exceptions in an http request that was dispatched to a worker thread?

I'm using the undertow security framework to handle an http request. Details on that can be seen here : http://undertow.io/undertow-docs/undertow-docs-1.3.0/index.html#security. My handler chain uses an error handler first with a try catch block…
Adam Perez
  • 31
  • 1
3
votes
0 answers

Handle long running tasks in an Undertow worker thread or not?

I have a Spring Boot app with a @RestController and I'm using Undertow as the embedded server. Now, as far as I understand, Undertow's using two thread pools: A pool of IO threads handling the incoming requests and a pool of worker threads to which…
martido
  • 373
  • 2
  • 9
3
votes
0 answers

Jax-WS handler for Undertow web server?

Similar to Resteasy (Jax-rs implementation) which has an Undertow plugin and can be used in ways as described here: https://github.com/vdevigere/undertow-cdi-jaxrs/wiki/Deploying-JAX-RS-Resources-and-Applications-to-Undertow, is there an equivalent…
ideaz
  • 475
  • 6
  • 15
3
votes
2 answers

How do I make Wildfly 10 / Resteasy indicate a serialization exception to the client

When an exception occurs during json serialization of a jax-rs response in Wildfly 10 the response is committed and the HTTP return code cannot be changed anymore. An exception of this is logged on the server side: 10:19:56,148 ERROR…
3
votes
0 answers

SSO logout on session timeout

When http session is invalidated explicitly, the following security session listener is invoked: SingleSignOnAuthenticationMechanism#SessionInvalidationListener A user gets new JSESSIONIDSSO cookie in a response. Everything works fine. But when…
Alexandr
  • 9,213
  • 12
  • 62
  • 102
3
votes
1 answer

Clojure Immutant 2 server Undertow; how to handle http POST?

Putting the following line into my compojure defroutes to use clojure-paypal-ipn calling the two handler functions. (POST "/paypal/ipn" [] (make-ipn-handler payment/paypal-data payment/paypal-error)) How do I handle a POST request within…
sventechie
  • 1,859
  • 1
  • 22
  • 51
3
votes
0 answers

Overriding default servlet-container in Wildfly 8

I have multiple virtual hosts within my Wildfly setup, but I'm unable to get them to use a custom servlet container and they instead all use the default one. I specifically need to do this to customise the session-cookie so that the various sites…