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

Spring Security on Wildfly: error while executing the filter chain

I'm trying to integrate Spring Security SAML Extension with Spring Boot. About the matter, I did develop a complete sample application. Its source code is available on GitHub: spring-boot-saml-integration on GitHub By running it as Spring Boot…
vdenotaris
  • 13,297
  • 26
  • 81
  • 132
41
votes
2 answers

How to configure Wildfly to serve static content (like images)?

I have a JavaEE application running on Wildfly 8.0.0 Final. The application uses a lot of images and I don't want to store them in the database, so they are written to the hard disk. How can I configure Wildfly/Undertow in order to serve these files…
Christian Götz
  • 818
  • 1
  • 8
  • 11
18
votes
3 answers

Vert.x Event loop - How is this asynchronous?

I'm playing around with Vert.x and quite new to the servers based on event loop as opposed to the thread/connection model. public void start(Future fut) { vertx .createHttpServer() .requestHandler(r -> { …
user378101
  • 649
  • 3
  • 12
  • 19
15
votes
4 answers

How to properly read POST request body in a Handler?

The code I'm using now: Pooled pooledByteBuffer = exchange.getConnection().getBufferPool().allocate(); ByteBuffer byteBuffer = pooledByteBuffer.getResource(); int limit = byteBuffer.limit(); byteBuffer.clear(); …
atok
  • 5,880
  • 3
  • 33
  • 62
14
votes
5 answers

How to start keycloak 2.0 on 8080 port?

Default port of Keycloak used to be on 8080. Now when I am starting keycloak using ./bin/standalone.sh then it is getting start on 9990 port. // So I guess now keycloak default port is 9990 nowadays. but funny part is whenever I am giving explicit…
Pramod S. Nikam
  • 4,271
  • 4
  • 38
  • 62
14
votes
2 answers

Undertow properties default values

We're currently tuning our services that uses undertow but we can't find the default values of the following properties: server.undertow.worker-threads server.undertow.io-threads We learned that undertow is using org.xnio.Options in setting-up the…
Orvyl
  • 2,635
  • 6
  • 31
  • 47
14
votes
2 answers

How to use custom logger to log access log in spring boot

Currently in spring boot 1.3, we could only log access log to a file in the filesystem. Is there any way to actually use the custom logger (like log4j2) to log the access log? I am currently using undertow with spring boot, but after checking the…
Rowanto
  • 2,819
  • 3
  • 18
  • 26
13
votes
3 answers

Undertow how to do Non-blocking IO?

I am using Undertow to create a simple application. public class App { public static void main(String[] args) { Undertow server = Undertow.builder().addListener(8080, "localhost") .setHandler(new HttpHandler() { …
eclipse
  • 131
  • 1
  • 1
  • 4
11
votes
1 answer

Routing template format for undertow

Is there any documentation about routing template format for undertow. I want to setup handlers like this: / or /index.html -> Use handler 1 Anything else -> Use handler 2 I tried this one, bu did not work: Handlers.routing() .add("GET",…
user1079877
  • 9,008
  • 4
  • 43
  • 54
10
votes
3 answers

How do I get a request body from HttpServerExchange?

I created an Undertow server and a Handler to Log requests. I'm having problems to retrieve the request body of HttpServerExchange. At LoggingHandler class, I'm getting the body without problems. But at TestEndpoint the body is coming empty. If I…
FDB
  • 113
  • 1
  • 6
9
votes
2 answers

If a web server is non-blocking, does this mean it is handling IO the same as node.js?

I will soon be using a server named Undertow. The website says: Undertow is a flexible performant web server written in java, providing both blocking and non-blocking API’s based on NIO If Undertow allows non-blocking, is that the same as…
johnny
  • 19,272
  • 52
  • 157
  • 259
9
votes
1 answer

How can I serve static resources from outside a war on WildFly

I may be wrong, but to my understanding, the following must be possible in WildFly: It must be possible to put a link into my JSF views (i. e. the xhtml files) to a resource (pdf, image, other xhtml file) that is already on the WildFly server. I can…
user3629892
  • 2,960
  • 9
  • 33
  • 64
9
votes
2 answers

How to do websockets in embedded undertow?

According to this: http://undertow.io/ it supports websockets. There is no documentation on how to do so, though. I just want a simple embedded undertow handling web sockets example. I don't want to grab the whole jboss app server.
mentics
  • 6,852
  • 5
  • 39
  • 93
8
votes
3 answers

Keycloak Redirect URI is adding port zero to the url

Encountered redirect_uri error in keycloak. Found same issue logged at JIRA KEYCLOAK-7237, just want to check any work around? Anyone can help? Thank you in advance. 2018-06-30 11:34:13,996 WARN [org.keycloak.events] (default task-8)…
user3550587
8
votes
1 answer

Simple rest with undertow

I have this code for server: Undertow server = Undertow.builder() .addHttpListener(8080, "localhost") .setHandler(Handlers.path() .addPrefixPath("/item", new ItemHandler()) ) …
mystdeim
  • 4,802
  • 11
  • 49
  • 77
1
2 3
35 36