Skip to content

Building WildFly

aborkar-ibm edited this page Nov 26, 2021 · 61 revisions

Building WildFly

General Notes:

  • When following the steps below please use a standard permission user unless otherwise specified.
  • A directory /<source_root>/ will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.

WildFly binaries are available and can be downloaded from here. To use these binaries, different Java flavors can be installed on mentioned distributions.

Note: WildFly(v25.0.1) was verified at the time of creation of these instructions

Step 1: Install Java

  • RHEL (7.8, 7.9, 8.2, 8.4, 8.5)

    • With IBM Semeru Runtime (previously known as AdoptOpenJDK openj9)

      sudo yum install -y tar wget
      
      • Download and install IBM Semeru Runtime (Java 11) from here.
    • With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)

      sudo yum install -y tar wget
      
      • Download and install Eclipse Adoptium Temurin Runtime (Java 11) from here.
    • With OpenJDK 11

      sudo yum install -y java-11-openjdk-devel
      
  • Ubuntu (18.04, 20.04, 21.04, 21.10)

    • With IBM Semeru Runtime (previously known as AdoptOpenJDK openj9)

      sudo apt-get update
      sudo apt-get install -y tar wget
      
      • Download and install IBM Semeru Runtime (Java 11) from here.
    • With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)

      sudo apt-get update
      sudo apt-get install -y tar wget
      
      • Download and install Eclipse Adoptium Temurin Runtime (Java 11) from here.
    • With OpenJDK 11

      sudo apt-get update
      sudo apt-get install -y openjdk-11-jdk
      

Step 2: Set Environment Variables

export JAVA_HOME=<path to java>
export PATH=$JAVA_HOME/bin:$PATH

Step 3: Run the server

To start the server, extract binary tar to /<source_root>/ and follow steps given below

export SOURCE_ROOT=/<source_root>/
  • Standalone Mode
sh $SOURCE_ROOT/<wildfly-<version>_binary_folder>/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0
  • Domain Mode
sh $SOURCE_ROOT/<wildfly-<version>_binary_folder>/bin/domain.sh -b 0.0.0.0 -bmanagement 0.0.0.0

Note: If the server fails to start on with the error WFLYCTL0113: '' is an invalid value for parameter instance-id. Values must have a minimum length of 1 characters, make sure the hostname command is installed and the environment variable is set via export HOSTNAME=`hostname`

Open http://<ip_address>:8080/ in your browser to access Web UI.

References:

Clone this wiki locally