To check the WildFly version on a Windows system, you have several reliable methods at your disposal, ranging from graphical tools to command-line utilities and log file inspections.
Checking WildFly Version in Windows
Knowing your WildFly application server version is crucial for compatibility, troubleshooting, and ensuring you are running a supported release. Here are the most effective ways to determine the WildFly version when operating on Windows.
1. Using the WildFly Management Console (Web UI)
The WildFly Management Console offers a user-friendly web interface that prominently displays server details, including its version. This is often the preferred method for quick visual confirmation.
- Access the Console: Open your web browser and navigate to the WildFly management console. By default, for a standalone server, this is typically
http://localhost:9990
. Adjust the IP address and port if your server is configured differently or hosted remotely. - Log In: Enter your configured management username and password when prompted to access the console.
- Locate Version Information: Once logged in, navigate to the main dashboard or the server's overview page. The WildFly version is usually displayed in a section like "Server Attributes," "Runtime," or "Product Info." It's often referred to as the "Management Major Version" and is prominently featured at the top or within the initial summary view.
2. Using the WildFly Command Line Interface (CLI)
For those who prefer command-line interactions or need to script version checks, the WildFly Command Line Interface (CLI) provides a direct and precise method to retrieve product information.
- Open Command Prompt: Press
Win + R
, typecmd
, and then pressEnter
to open a Command Prompt window. - Navigate to WildFly Bin Directory: Change your current directory to the
bin
folder within your WildFly installation. For example, if WildFly is installed atC:\wildfly-26.1.1.Final
, you would use:cd C:\wildfly-26.1.1.Final\bin
- Connect to CLI: Execute the
jboss-cli.bat
script to establish a connection to your running WildFly instance:jboss-cli.bat --connect
(If your WildFly server is not running locally or on the default management port, you may need to specify the controller address:
jboss-cli.bat --controller=IP_ADDRESS:PORT --connect
) - Retrieve Product Information: Once successfully connected to the CLI, issue the
product-info
command:product-info
This command will output comprehensive details about the WildFly product, including its exact version number, release name, and build information.
3. Checking Server Startup Logs
The WildFly server logs are a treasure trove of information, and the server's version number is consistently logged during its startup sequence.
- Locate Log File: Navigate to the WildFly logging directory. For a standalone server installation, this is typically found at
WILDFLY_HOME\standalone\log
. The primary log file is namedserver.log
.- Example Path:
C:\wildfly-26.1.1.Final\standalone\log\server.log
- Example Path:
- Open Log File: Open the
server.log
file using any text editor (e.g., Notepad, Notepad++, VS Code). - Search for Version: Scroll to the very beginning of the file or search for keywords like "WildFly" or "version." You will usually find a line similar to this, indicating the full WildFly version:
INFO [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly Full 26.1.1.Final (WildFly Core 18.0.3.Final) starting
The
WFLYSRV0049
message specifically identifies the "WildFly Full" version.
4. Inspecting Installation Directory Name (Less Reliable)
While not always definitive, the name of your WildFly installation directory often includes the version number, particularly if it was downloaded as a standard distribution archive.
- Locate WildFly Folder: Browse to the directory where WildFly is installed on your Windows file system (e.g.,
C:\Program Files
or a custom location). - Check Folder Name: The directory might be named something like
wildfly-26.1.1.Final
orwildfly-26.0.0.Beta1
. - Caution: This method is a quick visual check but can be inaccurate if the directory name was manually altered after extraction or if you are running a custom build. For guaranteed accuracy, always rely on the Management Console or CLI.
Summary of WildFly Version Check Methods
Method | Description | Best For |
---|---|---|
Management Console (Web UI) | Access http://localhost:9990 and view the "Server Attributes" or "Runtime" sections. |
Quick visual confirmation, ease of access. |
Command Line Interface (CLI) | Navigate to WILDFLY_HOME\bin , connect with jboss-cli.bat --connect , then run product-info . |
Scripting, precise version details, automation. |
Server Startup Logs | Open WILDFLY_HOME\standalone\log\server.log and search for "WildFly Full" at the log's beginning. |
Troubleshooting, non-running servers, historical data. |
Installation Directory | Visually inspect the WildFly installation folder name (e.g., wildfly-26.1.1.Final ). |
Initial identification, quick glance. |
By utilizing these methods, you can accurately determine your WildFly version on a Windows operating system.