WildFly fails to start: how to solve it

Do you have issues when starting WildFly ? This tutorial will teach you how to troubleshooting issues when WildFly fails to start. Let’s see some possible causes of failure in starting WildFly Application Server: Port already in use: This is one of the most common issues that could happen if you are starting WildFly on … Read more

Setting WildFly Home Directory

WildFly HOME Directory is determined by the variable JBOSS_HOME. Therefore, in order to set it on a Linux Machine you need to: $ export JBOSS_HOME=/home/francesco/jboss/wildfly-17.0.0.Final For Microsoft Windows, from the Windows Start Menu, select Settings, select Control Panel, select System, select Advanced, then select Environment Variables. Click New. In the Variable Name field, enter JBOSS_HOME. … Read more

How to shutdown WildFly gracefully

This tutorial shows how you can shutdown WildFly gracefully. WildFly can be suspended or shut down gracefully. This allows permits running requests to complete normally, without accepting new requests. Moreover, you can specify a timeout to define how long the suspend or shut down operation will wait for active requests to complete. You can shutdown … Read more

Installing WildFly on Mac OS X

The easiest way is to install WildFly on Mac OS X is through Homebrew the free open-source package managment system. Requirements: install homebrew first. ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” < /dev/null 2> /dev/null Then, install WildFly as follows: $ brew update Already up-to-date. $ brew search wildfly wildfly-as $ brew install wildfly-as ==> Downloading https://download.jboss.org/wildfly/16.0.0.Final/wildfly-16.0.0.Final.tar.gz … Read more

Solving jboss.network.management: failed to resolve interface management

In this tutorial we to solve the issue “jboss.network.management: failed to resolve interface management“ This issue can be verified if you try to assign an IP address to a standalone server. For example: $./standalone.sh -b=192.168.10.1 -bmanagement=192.168.10.1 However we get the following error: ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.network.management: org.jboss.msc.service.StartException … Read more

Getting to know WildFly folder structure

In this tutorial we will learn the basic folder structure of WildFly application server. Let’s begin from the root folder: appclient: Configuration files, deployment content, and writable areas used by the application client container are run from this installation. bin: Contains startup scripts and also scripts for installing WildFly as a service and libraries for … Read more

How to bind WildFly to an IP address

This tutorial discusses how to set WildFly bind address using command line arguments and the configuration file. It applies to all WildFly versions and JBoss EAP as well. WildFly application server and JBoss EAP include two network interfces . There are two interfaces: “public” and “management”: <interfaces> <interface name=”management”> <inet-address value=”${jboss.bind.address.management:127.0.0.1}”/> </interface> <interface name=”public”> <inet-address … Read more

How Wildfly uses the expression evaluator to evaluate attributes

In WildFly expressions are mechanism that enables you to support variables in your attributes. A typical usage is that you want the value of attribute to be resolved using System or Environment properties. An example expression is: ${jboss.bind.address.management:127.0.0.1} This means that the value should derive from a system property named jboss.bind.address.management and if it is … Read more

Installing WildFly Application Server

In this tutorial we will learn how to install WildFly application server. WildFly runs on top of the Java platform therefore it needs at least a Java Runtime Environment (JRE) to run. If you want to compile and build Java web applications, you will also need the Java Development Kit (JDK), which provides the necessary … Read more

How to capture WildFly lifecycle notifications

This tutorial describes how to capture lifecycle events notifications in WildFly 11 and above. Since WildFly 11 it’s much easier to capture JMX notifications of the server lifecycle events. Each time that an event like start/stop/resume etc. happens, the application server will send an AttributeChangeNotifications on the object named “jboss.root:type=state“. If you have subscribed to … Read more