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

Wildfly Undertow File Mimetypes

I want Undertow to serve static files like .jpg, .png, .js, .css, .txt etc... I edited the undertow subsystem in standalone.xml:
2
votes
1 answer

Undertow - How to Setup a Reverse Proxy to Monitor HTTP/HTTPS Traffic to my REST API

I would like to basically sniff HTTP/HTTPS requests and responses from my computer to a remote URL (basically a REST API). I understand there are plenty of tools that will help me get what I want, but I have to kind of write a utility to do this in…
Sriram Sridharan
  • 720
  • 18
  • 43
2
votes
0 answers

Does Undertow support async I/O from an async source?

I have a scenario where I’m attempting to serve data in a non-blocking fashion which is sourced by a RxJava Observable (also non-blocking). I’m using the WriteListener callback provided by ServletOutputStream. I’m running into an issue where the…
2
votes
1 answer

How to enable directory listing and resource serving on an Embedded Undertow Server?

In the example listed on the undertow documentation site, it shows how to configure 2 servlets and their mappings. But I can't find how to configure the default Servlet to allow directory listing and resource serving. DeploymentInfo servletBuilder =…
Carlos Laspina
  • 2,013
  • 4
  • 27
  • 44
2
votes
1 answer

Undertow throws RuntimeException when uploading multipart file exceeding the setting value

I'm running the complete version of Spring boot Upload file guide at Spring Guide, but I used Undertow as embedded servlet instead of Tomcat default. And it worked. When I try to upload file with size larger than the value in config…
heyxh
  • 571
  • 7
  • 11
2
votes
1 answer

Wildfly throws exception when client closes http web request connection

We have an app that uses a Wildfly server as its rest service. In the app, a database call which updates points on a map. Eevery time a new call is made the app cancels the previous HTTP web request and makes a new one, which is throwing an error…
blitzeus
  • 485
  • 2
  • 10
  • 28
2
votes
0 answers

Adding beans to Injection Context in Embedded Undertow/CDI/RestEasy

Given an embedded Undertow instance with CDI: SomeObject myObject = new SomeObject(); UndertowJaxrsServer server = new UndertowJaxrsServer(); Undertow.Builder builder = Undertow.builder().addHttpListener(port,…
user2362840
  • 183
  • 7
2
votes
2 answers

Disable http TRACK/TRACE in undertow using spring boot

I want to disable http TRACE in undertow. I am using spring boot and undertow is provided with it by default. I have excluded tomcat and using undertow. I got the answer for tomcat in other stackoverflow post (here) but I am unable to find the same…
rishi
  • 1,792
  • 5
  • 31
  • 63
2
votes
0 answers

Spring boot http requests open threads that never close

I am trying to do some performance testing of my boot app prior to releasing it, so I am running some test to see memory usage, thread count etc. I am noticing that as I make http requests to the endpoints of the app (including the actuate…
peekay
  • 1,259
  • 2
  • 25
  • 49
2
votes
2 answers

Advanced Tweak on Undertow-handlers.conf for http https redirect

I use WildFly behind an AWS load balancer. I want the Undertow server in WildFly to redirect http traffic to https, and I can do this mostly successfully with the following line placed in undertow-handlers.conf: equals('http',…
Josh Britton
  • 425
  • 4
  • 17
2
votes
0 answers

Wildfly Undertow stop responding

Recently widlfy undertow in production stop to response. the ejb timers continue to works correctly and the widfly service is up, but each web module stop to responding. It happened different times (one or two each day) In the server.log there are…
Giuseppe
  • 125
  • 2
  • 14
2
votes
4 answers

Wildfly: Unexpected element '{urn:jboss:domain:4.2}server'

Error: 17:42:50,333 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting 17:42:50,732 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during…
0xCA2
  • 35
  • 1
  • 1
  • 5
2
votes
2 answers

Charset Encoding in WildFly

All my application files were created using UTF-8 yet WildFly serves them as ISO-8859-1. So I have a few questions: does WildFly have a default charset? how does WildFly choose the encoding used to set the charset response header? what is the…
Fábio
  • 3,291
  • 5
  • 36
  • 49
2
votes
0 answers

Identify PathParam inside an Undertow filter when the response entity is a String

I need to identify @PathParam from a request, inside an undertow filter, to ignore them (metrics purpose). My filter looks like this: public class MetricsHandler implements HttpHandler { private HttpHandler next; public…
Alessandro Hoss
  • 395
  • 4
  • 8
2
votes
0 answers

undertow - IllegalStateException: UT000021: Session already invalidated

Even though session can be taken from request, it seems to be invalidated in undertow's InMemorySessionManager. Please find the logs: IllegalStateException: UT000021: Session already invalidated at…
Vishnu G S
  • 654
  • 2
  • 10
  • 27