How to set the maximum number of Web connections in WildFly

The max-connections attribute sets the amount of concurrent connections that can be processed by an Undertow listener. You can apply to any of your available connectors. For example, to set the maximum number of connections for the HTTP connector from WildFly / JBoss CLI execute: The configuration will be updated as follows: If your configuration … Read more

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.

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

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

How to deploy Java Web Start Applications on JBoss

INFO: Java Web Start (JWS) was deprecated in Java 9, and starting with Java 11, Oracle removed JWS from their JDK distributions. This means that clients that have the latest version of Java installed can no longer use JWS-based applications. And since public support of Java 8 has ended in Q2/2019, companies no longer get … Read more