This articles discusses the nitty-gritty details about JBoss Undertow, with some basic examples and links to the official project.
WildFly Web Server
Undertow, a lightweight and high-performance web server, has gained immense popularity in the realm of web development. Whether you’re a seasoned developer or just starting your journey, our collection of tutorials offers a comprehensive resource to help you master the Undertow web server. With a focus on configuration and performance tuning, we delve into various aspects of Undertow, equipping you with the knowledge and skills to build efficient and scalable web applications.
Our tutorials cover a wide range of topics, including Undertow configuration, request handling, routing, and security. By incorporating Undertow’s advanced features and best practices, you can optimize your website’s performance, enhance user experience, and ultimately improve your search engine rankings.
Throughout these tutorials, you’ll explore key concepts such as HTTP server configuration, servlet integration, WebSocket support, and reverse proxy setups. By leveraging Undertow’s flexible and extensible architecture, you can build lightweight and high-performance web applications tailored to your specific needs.
How to add a web fragment to all applications deployed on WildFly
In this article we will learn how to create a Web fragment XML file (web-fragment.xml) and how to make it default for all applications deployed on WildFly by using a the deployment-overlay feature.
How to redirect HTTP to HTTPS in WildFly
In some cases it may be necessary to redirect your incoming HTTP traffic to HTTPS to ensure that your connection is encrypted. Let’s see what changes are required in your Undertow configuration to allow automatic redirection from HTTP to HTTPS.
Configuring Strict Transport Security (HSTS) on WildFly
HSTS stands for HTTP Strict Transport Security. It is a method used by websites to declare that they should only be accessible using a secure connection (HTTPS). If a website declares an HSTS policy, the browser should reject all HTTP connections and prevent users from accepting insecure SSL certificates. In this tutorial we will learn how to configure in on WildFly Web server.
How to restrict access to WildFly web application by IP or Host?
This article will teach you how to create an Access Control List for your Web applications running on WildFly based on IP/Host address. The procedure to apply is different depending on the version of the application server. We will check first how to do it with WildFly / JBoss EAP 7 which uses undertow. Next, … Read more
Where are my compiled JSP pages on JBoss / WildFly?
WildFly application server places the source and compiled Servlets (derived from your JSP) under the standalone/tmp/<deployment_unit>/org/apache/jsp folder. Let’s see an example. You have deployed a Web application named “hello.war” which contains,in the root folder, the hello.jsp page. When requested, the following hello_jsp.java Servlet,java will be created and compiled: tmp ├── auth ├── hello.war │ └── … Read more
PrimeFaces vs RichFaces vs IceFaces
Important notice: This tutorial has been written in 2010 when JSF was still quite popular as UI framework with many frameworks available on the top of it. Ten years later things changed quite a bit: Richfaces reached the End of Life in 2016 and it’s not being maintained by any organization. Icefaces is still being … Read more
How do I reload dynamically my jsp from an EAR ?
Deploy your JSP as part of an application deployed in exploded format. (That is create a folder named yourapplication.ear’ and inside it create a folder yourwebapplication.war). This is the suggested deployment’ strategy when you’re developing your applications because changes to the JSP pages take effect immediately. Therefore, you don’t need to redeploy the application nor … Read more
Tomcat to WildFly migration guidelines
Tomcat to WildFly / JBoss EAP migration is a typical scenario when you Web application requires some additional services (like JMS or transactions) which are available when using an application server. In this tutorial we will show some of the common pitfalls you can encounter when upgrading from Tomcat to WildFly / JBoss EAP There … Read more
How to deploy a Web application on the Root Context on WildFly?
WildFly users To deploy an application on the ROOT Web context, firstly you have to remove the default Welcome application from undertow’s server: /subsystem=undertow/server=default-server/host=default-host/location=\/:remove { “outcome” => “success”, “response-headers” => { “operation-requires-reload” => true, “process-state” => “reload-required” } } Reload the server: reload Next, if you can either set the ROOT Web context in your … Read more