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

Wildfly vs undertow embedded performances

I'm interested in the embedded undertow technology because then I don't have to reconfigure standalone.xml every time my project changes of machines. I can then just run the .jar. So I have 2 questions: Can I keep wildfly configuration inside a…
Ced
  • 15,847
  • 14
  • 87
  • 146
4
votes
3 answers

Multipart form-data example using Undertow

I'm trying to upload a text file from a html form. Is there any example on how to get the text-file from the HttpHandler
Vishnu667
  • 768
  • 1
  • 16
  • 39
4
votes
0 answers

Redirecting HTTP request through Websocket tunnel

I just want to know, is it possible a web server (JBOSS - Undertow) can redirect an incoming HTTP request to another web server (JBOSS - Undertow), both servers are connected using WebSocket (WS) protocol. Lets explain my problem elaborately. I have…
Kather
  • 95
  • 8
4
votes
1 answer

Is there a way to use the Servlet API with Undertow?

I'm just discovering how Undertow works and I was surprised by its api: Undertow server = Undertow.builder() .addHttpListener(8080, "localhost") .setHandler(new HttpHandler() { @Override …
Adam Arold
  • 29,285
  • 22
  • 112
  • 207
4
votes
1 answer

Clustered Wildfly throws java.lang.IllegalAccessError

I'm running application on Wildfly managed domain that consists from 2 virtual machines with 3 servers on each VM. Exception occurs in console.log: 14:04:10,254 WARN [org.jboss.weld.Servlet] (default task-51) WELD-000717: Unable to deactivate…
master_bo
  • 93
  • 8
4
votes
1 answer

Embedded Undertown deploy websocket and servlet at same time, not work

I am new using undertow, I'm developing a stand alone application that will use this as embedded server. I wish I could deploy web sockets, servlets, and restfull htmls services within my embedded undertow. So far I've only done the test with web…
Roberto
  • 169
  • 9
4
votes
1 answer

configure embedded undertow server programmatically

the code below allows me to create an embedded undertow servlet server, i have a problem setting the 'max-parameters' of the connector settings, the way i understand it undertow is normally configured via xml file. public static String…
jyonkheel
  • 443
  • 4
  • 17
4
votes
2 answers

Undertow on Spring leaks connections

I'm using Spring Boot (1.3.O.M5) with Undertow. Recently, I've found that when I use the lsof -p $(pidof java) command after a few hours, it presents me with about 700 lines, most of which are established TCP connections to clients, even though…
Jakub Kozłowski
  • 493
  • 1
  • 6
  • 13
4
votes
3 answers

Redirect http to https on spring boot embedded undertow

I am using spring boot (1.2.3) and embedded undertow. For security reasons I would prefer to redirect any http request to https but I cannot find an example for doing this. Here is an example for spring boot and tomcat: Spring boot - Embeded Tomcat…
René Reitmann
  • 364
  • 2
  • 17
4
votes
1 answer

Register new undertow SessionManager

I have wildfly 8.1 server running. I have my own SessionManager implementing io.undertow.server.session.SessionManager. And i want to configure the system to use my session manager. Where and how should i configure/add new settings for my session…
Nem
  • 336
  • 3
  • 8
  • 22
4
votes
3 answers

Wildfly 8.2/undertow read time out

I recently migrated my project from jboss4 to wildfly 8.2 with java1.8. I have a webservice call using SAAJ which runs fine in command line. But when its run from within wildfly8.2, it times out after 60 seconds. I read from jboss forums that read…
Sannu
  • 1,202
  • 4
  • 21
  • 32
4
votes
1 answer

Spring boot WAR size with different embedded servers

I am doing som experimentation with spring-boot and i realized that when i use embedded Tomcat server the resulting WAR size is smaller than when i use Jetty or even Undertow servers with same rest dependencies. How is this possible? ... it is…
Rafael
  • 2,521
  • 2
  • 33
  • 59
4
votes
1 answer

Configure WildFly/Undertow to put JSESSIONID on URL if cookies not accepted

We previously used JBoss 7.1.2 and utilized the behaviour that JSESSIONID is put on the URL as a fallback if cookies are not accepted or if the JSESSIONID cookie is not present in requests. After migrating to WildFly 8.2.0 / Undertow 1.1.0 this URL…
jkmgbrt
  • 41
  • 1
  • 3
4
votes
1 answer

In Wildfly, "/" is rewritten to "/index.html", bypassing RequestMapping("/")

I am migrating a Spring MVC app from JBoss 7.1.1 to Wildfly 8.1, which has required (encouraged?) me to use the new "undertow" module instead of the older "web" module. Things are coming right along, except that now requests to "/", which used to…
Sharky
  • 549
  • 5
  • 14
4
votes
1 answer

Request io.undertow.servlet.spec.HttpServletRequestImpl was not original or a wrapper

I try to forward the request to a JSP page from a Rest method in WildFly 8.1 but this throws an Exception: Caused by: java.lang.IllegalArgumentException: UT010023: Request io.undertow.servlet.spec.HttpServletRequestImpl@88ad706 was not original or a…
V G
  • 18,822
  • 6
  • 51
  • 89