WildFly®
WildFly is a registered trademark of the Commonhaus Foundation.
TuxCare's Endless Lifecycle Support (ELS) for WildFly provides security patches and selected bug fixes that are integral to the stable operation of applications running on these versions of WildFly. These components have either reached their end of standard support from vendors or have reached End of Life (EOL). Our ELS for WildFly service is designed to provide solutions for organizations that are not yet ready to migrate to newer versions and that are seeking long-term stability for their legacy WildFly applications.
This guide outlines the steps needed for WildFly server setup and configuration.
Supported Versions
- WildFly 27.0.1.Final
Installation
Prerequisites
- Java Development Kit (JDK) 11 or later installed (verify with
java -version) JAVA_HOMEset to your JDK installation directory- Nexus repository access credentials (username and password) — contact sales@tuxcare.com
- To browse available artifacts, visit TuxCare Nexus and click Sign in in the top right corner. You may need to refresh the page after logging in.
Linux Installation
Download the TuxCare build
Download from TuxCare using your credentials. For example, WildFly 27.0.1.Final:
curl -u USERNAME:PASSWORD -O https://nexus.repo.tuxcare.com/repository/els_java/org/wildfly/wildfly-ee-dist/27.0.1.Final-tuxcare.1/wildfly-ee-dist-27.0.1.Final-tuxcare.1.tar.gzReplace
USERNAMEandPASSWORDwith your TuxCare credentials (see Prerequisites above).Extract the archive
Create an installation directory in your home folder and extract the archive into it:
mkdir -p ~/wildfly tar -xzf wildfly-ee-dist-27.0.1.Final-tuxcare.1.tar.gz -C ~/wildfly --strip-components=1Verify the installation
~/wildfly/bin/standalone.sh --versionThe output should display the WildFly version and build details.
Start WildFly
~/wildfly/bin/standalone.shThis command runs in the foreground and keeps the terminal busy. Use a second terminal to verify and stop the server.
Verify the server is running
Go to http://localhost:8080/. You should see the default WildFly welcome page.
Or check from the terminal (successful output is HTML from WildFly):
curl http://localhost:8080
Stop WildFly
~/wildfly/bin/jboss-cli.sh --connect command=:shutdown
Windows Installation
Download WildFly
Download the
.ziparchive from Nexus using your credentials, for examplewildfly-ee-dist-27.0.1.Final-tuxcare.1.zip.Extract the archive
Extract it to the installation directory, e.g.,
C:\WildFly. The archive contains a top-level folder, so this producesC:\WildFly\wildfly-27.0.1.Final-tuxcare.1— that folder is your WildFly directory.Start WildFly
Run
C:\WildFly\wildfly-27.0.1.Final-tuxcare.1\bin\standalone.bat.This window stays open while the server runs. Use your browser (next step) to verify it, and a second window to stop it.
Verify the server is running
Go to http://localhost:8080/ in your browser. You should see the default WildFly welcome page.
Stop WildFly
Run
C:\WildFly\wildfly-27.0.1.Final-tuxcare.1\bin\jboss-cli.bat --connect command=:shutdownfrom a second window.
Use Case: Production Setup Linux
Create a
wildflygroupsudo groupadd wildflyCreate a
wildflyuserCreate a new user as a member of the
wildflygroup, with a home directory of/opt/wildflyand the login shell set to/bin/false:sudo useradd -s /bin/false -g wildfly -d /opt/wildfly wildflyInstall into
/opt/wildflyand set ownershipsudo mkdir -p /opt/wildfly sudo tar -xzf wildfly-ee-dist-27.0.1.Final-tuxcare.1.tar.gz -C /opt/wildfly --strip-components=1 sudo chown -R wildfly:wildfly /opt/wildflyStart WildFly as the
wildflyusersudo -u wildfly JAVA_HOME=/path/to/your/jdk /opt/wildfly/bin/standalone.shsudodoes not pass your environment to the target user, so setJAVA_HOMEexplicitly (or configure it for thewildflyuser). Otherwise the server fails withjava: command not found.Stop it from a second terminal with
/opt/wildfly/bin/jboss-cli.sh --connect command=:shutdown.
Logs Location
Check logs for detailed error information:
Linux:
~/wildfly/standalone/log/server.log(or
/opt/wildfly/standalone/log/server.logif you installed under a dedicated user)Windows:
C:\WildFly\wildfly-27.0.1.Final-tuxcare.1\standalone\log\server.log
