JBoss WildFly

JBoss Wildfly Installation on Ubuntu Example

This is an article about JBoss Wildly Installation on Ubuntu. JBoss WildFly admin module manages the applications deployed on its server. Wildfly server was JBoss application server during the initial releases. In this article, setup of WildFly Change Port on Ubuntu is presented and discussed.

1. Introduction

A JBoss WildFly instance can be deployed on the standalone server on Ubuntu. The default port for the standalone server is 8080.

2. JBoss Wildfly Installation on Ubuntu

2.1 Prerequisites

A server running Ubuntu Operating system is required. A non-root user with sudo privileges needs to be created. A static IP address needs to be configured on the server. Java 7 or 8 is required on the machine where JBoss Wildfly is running. In addition, JBoss Wildfly need to be installed after the Java is installed.

2.2 Install Java

You can install Java by running the below command:

Installing java

sudo apt-get install default-jdk -y

You can check the jdk version using the following command:

Java Version

java -version

2.3 Download JBoss Wildfly

You can download JBoss Wildfly using the below command

Download JBoss Wildfly

wget https://download.jboss.org/wildfly/16.0.0.Final/wildfly-16.0.0.Final.tar.gz

2.4 Extract JBoss Wildfly

You can extract the JBoss Files from gzipped tar file.

Extract JBoss Wildfly Files

cd /opt
tar -xvzf wildfly-16.0.0.Final.tar.gz
sudo mv wildfly-16.0.0.Final wildfly

2.5 Setup

The IP address can be set to by editing the standalone.xml

standalone.xml changed configuration

<subsystem xmlns="urn:jboss:domain:webservices:2.0">
<endpoint-config name="Standard-Endpoint-Config"/>

<interface name="management">
<inet-address value="${jboss.bind.address.management:}"/>

<interface name="public">
<inet-address value=”${jboss.bind.address:}”/>

2.6 Running the JBoss Wildfly

Wildfly server can be started with this command from wildfly-16.0.0.Final/bin:

start command

sudo sh /opt/wildfly/bin/standalone.sh

After the wildfly server starts and you can check in the browser using the url :

JBoss Wildfly Installation on Ubuntu - Wildfly installed
Wildfly installed

A sample war provided below in the download section can be deployed on to the stand alone server. The admin console is launched using this link.

JBoss Wildfly Installation on Ubuntu - Admin Console
Admin Console choosing war file

The application name and runtime name can be configured as shown below.

JBoss Wildfly Installation on Ubuntu - Configuration of application
Configuration of application

The following screen shows the successful deployment.

JBoss Wildfly Installation on Ubuntu - Successful Deployment
Successful Deployment

You can check the war deployed by using the link :

JBoss Wildfly Installation on Ubuntu - Sample War Deployed
Sample War Deployed

3. Download the Source Code

Sample war file can be downloaded and deployed on JBoss WildFly Server

You can download the full source code of this example here: JBoss Wildfly Installation on Ubuntu Example

Bhagvan Kommadi

Bhagvan Kommadi is the Founder of Architect Corner & has around 20 years’ experience in the industry, ranging from large scale enterprise development to helping incubate software product start-ups. He has done Masters in Industrial Systems Engineering at Georgia Institute of Technology (1997) and Bachelors in Aerospace Engineering from Indian Institute of Technology, Madras (1993). He is member of IFX forum,Oracle JCP and participant in Java Community Process. He founded Quantica Computacao, the first quantum computing startup in India. Markets and Markets have positioned Quantica Computacao in ‘Emerging Companies’ section of Quantum Computing quadrants. Bhagvan has engineered and developed simulators and tools in the area of quantum technology using IBM Q, Microsoft Q# and Google QScript. He has reviewed the Manning book titled : "Machine Learning with TensorFlow”. He is also the author of Packt Publishing book - "Hands-On Data Structures and Algorithms with Go".He is member of IFX forum,Oracle JCP and participant in Java Community Process. He is member of the MIT Technology Review Global Panel.
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments
Back to top button