For the complete documentation index, see llms.txt. This page is also available as Markdown.

38.6 WildFly Application Server

WildFly Overview

WildFly (formerly JBoss Application Server) is developed under the leadership of Red Hat and is an open-source Jakarta EE application server that provides a runtime environment and services for enterprise Java applications.

WildFly supports two running modes: standalone (standalone mode) for single-server deployments, and domain (domain mode) for multi-server centralized management.

Installing the WildFly Application Server

This section describes the practical method for deploying WildFly on FreeBSD.

There are two main ways to install WildFly:

  • Install using pkg:

# pkg install wildfly
  • Install using Ports:

# cd /usr/ports/java/wildfly/
# make install clean

After installation, you can view the information provided by the package to understand the subsequent configuration steps.

# pkg info -D wildfly

File Structure

/
├── usr
   └── local
       └── wildfly
           ├── bin
              └── add-user.sh                # WildFly user addition script
           ├── standalone
              └── configuration
                  ├── mgmt-users.properties # Standalone mode management user configuration
                  └── mgmt-groups.properties # Standalone mode management group configuration
           └── domain
               └── configuration
                   ├── mgmt-users.properties # Domain mode management user configuration
                   └── mgmt-groups.properties # Domain mode management group configuration
└── var
    └── log
        └── wildfly
            ├── error                             # WildFly error log
            └── log                               # WildFly general log

Configuring the WildFly Application Server

After installation, basic configuration must be completed before use.

Service Startup Configuration

Configure the WildFly service and set the bind address:

Service Startup and Verification

Start the WildFly service:

  • Open http://127.0.0.1:8080 (also accessible from other devices on the LAN) to verify the service status.

WildFly Service Status
  • Execute the WildFly user addition script /usr/local/wildfly/bin/add-user.sh to create an administrator account.

  • Open http://localhost:9990 (also accessible from other devices on the LAN) to log in to the management interface.

WildFly Management Interface
WildFly Management Interface

Troubleshooting and Unfinished Items

If the service fails to start, you can check the error logs through the /var/log/wildfly/error file and the /var/log/wildfly/log file.

References

  • WildFly Project. WildFly Documentation[EB/OL]. [2026-04-17]. https://docs.wildfly.org/. Official WildFly documentation, covering Jakarta EE support and configuration guides for various versions.

Last updated