How to install wildfly 12.0.0 on Linux Mint 18.3

To install Wildfly 12.0.0 on Linux Mint 18.3

WildFly is a flexible, lightweight, managed application runtime that helps you build amazing applications. Wildfly is an open source application, developed by JBoss and now maintained by RedHat. In this tutorial, we will see the installation of Wildfly 12.0.0 on Linux Mint 18.3

Installation of Wildfly

Download the wildfly' s latest version from the official site using wget command.

linuxhelp ~ # wget http://download.jboss.org/wildfly/12.0.0.Final/wildfly-12.0.0.Final.zip
--2018-04-13 05:04:34--  http://download.jboss.org/wildfly/12.0.0.Final/wildfly-12.0.0.Final.zip
Resolving download.jboss.org (download.jboss.org)... 104.122.124.199
Connecting to download.jboss.org (download.jboss.org)|104.122.124.199|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 170092513 (162M) [application/zip]
Saving to: ‘ wildfly-12.0.0.Final.zip’ 

wildfly-12.0.0.Final.zip             100%[====================================================================> ] 162.21M  1.10MB/s    in 2m 27s  

2018-04-13 05:07:02 (1.10 MB/s) - ‘ wildfly-12.0.0.Final.zip’  saved [170092513/170092513]

After downloading unzip the downloaded package.

linuxhelp ~ # unzip wildfly-12.0.0.Final.zip 
Archive:  wildfly-12.0.0.Final.zip
   creating: wildfly-12.0.0.Final/
   creating: wildfly-12.0.0.Final/.installation/
   creating: wildfly-12.0.0.Final/appclient/
   creating: wildfly-12.0.0.Final/appclient/configuration/
   creating: wildfly-12.0.0.Final/bin/
   creating: wildfly-12.0.0.Final/bin/client/
   creating: wildfly-12.0.0.Final/docs/
   creating: wildfly-12.0.0.Final/docs/contrib/
.
.
  inflating: wildfly-12.0.0.Final/standalone/configuration/application-users.properties  
  inflating: wildfly-12.0.0.Final/standalone/configuration/mgmt-groups.properties  
  inflating: wildfly-12.0.0.Final/standalone/configuration/standalone-ee8.xml  
  inflating: wildfly-12.0.0.Final/standalone/configuration/standalone-full.xml  
  inflating: wildfly-12.0.0.Final/standalone/configuration/standalone-ha.xml  
  inflating: wildfly-12.0.0.Final/welcome-content/bkg.gif  

Now let' s rename the directory to ease the file name and change the permissions. After assigning permission, navigate to the bin directory and list all the files.

linuxhelp ~ # mv wildfly-12.0.0.Final wildfly
linuxhelp ~ # chmod -R 755 wildfly
linuxhelp wildfly # cd bin/
linuxhelp bin # ll
total 2644
drwxr-xr-x  3 root root    4096 Mar  1 00:29 ./
drwxr-xr-x 10 root root    4096 Mar  1 00:29 ../
-rwxr-xr-x  1 root root    2178 Mar  1 00:29 add-user.bat*
-rwxr-xr-x  1 root root    2444 Mar  1 00:29 add-user.properties*
-rwxr-xr-x  1 root root    1069 Mar  1 00:29 add-user.ps1*
-rwxr-xr-x  1 root root    2230 Mar  1 00:29 add-user.sh*
-rwxr-xr-x  1 root root    3748 Mar  1 00:29 appclient.bat*
-rwxr-xr-x  1 root root    1841 Mar  1 00:29 appclient.conf*
-rwxr-xr-x  1 root root    2464 Mar  1 00:29 appclient.conf.bat*
-rwxr-xr-x  1 root root    2473 Mar  1 00:29 appclient.conf.ps1*
-rwxr-xr-x  1 root root    1151 Mar  1 00:29 appclient.ps1*
-rwxr-xr-x  1 root root    4471 Mar  1 00:29 appclient.sh*
drwxr-xr-x  2 root root    4096 Mar  1 00:29 client/
-rwxr-xr-x  1 root root    9156 Mar  1 00:29 common.ps1*
-rwxr-xr-x  1 root root    6068 Mar  1 00:29 domain.bat*
-rwxr-xr-x  1 root root    2666 Mar  1 00:29 domain.conf*
-rwxr-xr-x  1 root root    3331 Mar  1 00:29 domain.conf.bat*
-rwxr-xr-x  1 root root    2921 Mar  1 00:29 domain.conf.ps1*
-rwxr-xr-x  1 root root    3052 Mar  1 00:29 domain.ps1*
-rwxr-xr-x  1 root root   11153 Mar  1 00:29 domain.sh*
-rwxr-xr-x  1 root root    1708 Mar  1 00:29 elytron-tool.bat*
-rwxr-xr-x  1 root root    1079 Mar  1 00:29 elytron-tool.ps1*
-rwxr-xr-x  1 root root    1790 Mar  1 00:29 elytron-tool.sh*
-rwxr-xr-x  1 root root    2981 Mar  1 00:29 jboss-cli.bat*
-rwxr-xr-x  1 root root    1933 Mar  1 00:29 jboss-cli-logging.properties*
-rwxr-xr-x  1 root root     861 Mar  1 00:29 jboss-cli.ps1*
-rwxr-xr-x  1 root root     477 Mar  1 00:29 .jbossclirc*
-rwxr-xr-x  1 root root    2473 Mar  1 00:29 jboss-cli.sh*
-rwxr-xr-x  1 root root    2041 Mar  1 00:29 jboss-cli.xml*
-rwxr-xr-x  1 root root    1664 Mar  1 00:29 jconsole.bat*
-rwxr-xr-x  1 root root     863 Mar  1 00:29 jconsole.ps1*
-rwxr-xr-x  1 root root    2139 Mar  1 00:29 jconsole.sh*
-rwxr-xr-x  1 root root    1936 Mar  1 00:29 jdr.bat*
-rwxr-xr-x  1 root root     693 Mar  1 00:29 jdr.ps1*
-rwxr-xr-x  1 root root    2010 Mar  1 00:29 jdr.sh*
-rwxr-xr-x  1 root root   41819 Mar  1 00:29 launcher.jar*
-rwxr-xr-x  1 root root      57 Mar  1 00:29 product.conf*
-rwxr-xr-x  1 root root    8479 Mar  1 00:29 standalone.bat*
-rwxr-xr-x  1 root root    2592 Mar  1 00:29 standalone.conf*
-rwxr-xr-x  1 root root    2994 Mar  1 00:29 standalone.conf.bat*
-rwxr-xr-x  1 root root    2753 Mar  1 00:29 standalone.conf.ps1*
-rwxr-xr-x  1 root root    1611 Mar  1 00:29 standalone.ps1*
-rwxr-xr-x  1 root root   12106 Mar  1 00:29 standalone.sh*
-rwxr-xr-x  1 root root    2028 Mar  1 00:29 vault.bat*
-rwxr-xr-x  1 root root     709 Mar  1 00:29 vault.ps1*
-rwxr-xr-x  1 root root    2231 Mar  1 00:29 vault.sh*
-rwxr-xr-x  1 root root 2409007 Mar  1 00:29 wildfly-elytron-tool.jar*
-rwxr-xr-x  1 root root    2324 Mar  1 00:29 wsconsume.bat*
-rwxr-xr-x  1 root root     784 Mar  1 00:29 wsconsume.ps1*
-rwxr-xr-x  1 root root    3008 Mar  1 00:29 wsconsume.sh*
-rwxr-xr-x  1 root root    2279 Mar  1 00:29 wsprovide.bat*
-rwxr-xr-x  1 root root     787 Mar  1 00:29 wsprovide.ps1*
-rwxr-xr-x  1 root root    2859 Mar  1 00:29 wsprovide.sh*

You can find the standalone script to run wildfly so execute the following script using the below command.

linuxhelp bin # ./standalone.sh 
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /home/user/wildfly

  JAVA: java

  JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

=========================================================================

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/user/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
.
.
05:26:16,420 INFO  [org.jboss.ws.common.management] (MSC service thread 1-1) JBWS022052: Starting JBossWS 5.2.0.Final (Apache CXF 3.2.2) 
05:26:16,664 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
05:26:16,672 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
05:26:16,679 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
05:26:16,680 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 12.0.0.Final (WildFly Core 4.0.0.Final) started in 23381ms - Started 292 of 513 services (308 services are lazy, passive or on-demand)

Now access the wildfly from the browser either using IP address or domain name.

As you see from the above output we need to add the users to access the admin console so let' s add users.

linuxhelp bin # ./add-user.sh
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/user/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

What type of user do you wish to add? 
 a) Management User (mgmt-users.properties) 
 b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add.
Using realm ' ManagementRealm'  as discovered from the existing property files.
Username : linuxhelp
Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.
 - The password should be different from the username
 - The password should not be one of the following restricted values {root, admin, administrator}
 - The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
Password : 
Re-enter Password : 
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[  ]: 
About to add user ' linuxhelp'  for realm ' ManagementRealm' 
Is this correct yes/no? yes
Added user ' linuxhelp'  to file ' /home/user/wildfly/standalone/configuration/mgmt-users.properties' 
Added user ' linuxhelp'  to file ' /home/user/wildfly/domain/configuration/mgmt-users.properties' 
Added user ' linuxhelp'  with groups  to file ' /home/user/wildfly/standalone/configuration/mgmt-groups.properties' 
Added user ' linuxhelp'  with groups  to file ' /home/user/wildfly/domain/configuration/mgmt-groups.properties' 
Is this new user going to be used for one AS process to connect to another AS process? 
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.
yes/no? yes


To represent the user add the following to the server-identities definition < secret value=" YmVuaXphbmcyJA=="  />     

Now the user has been added to run the standalone script again and access the browser.

linuxhelp bin # ./standalone.sh 
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /home/user/wildfly

  JAVA: java

  JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

.
.
05:28:26,505 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
05:28:26,564 INFO  [org.jboss.ws.common.management] (MSC service thread 1-1) JBWS022052: Starting JBossWS 5.2.0.Final (Apache CXF 3.2.2) 
05:28:26,760 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
05:28:26,772 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
05:28:26,773 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
05:28:26,773 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 12.0.0.Final (WildFly Core 4.0.0.Final) started in 10735ms - Started 292 of 513 services (308 services are lazy, passive or on-demand)


Now browse the same URL again and click on try again and it will ask for authentication so enter your username and password.

After entering the valid credentials you can able to access the admin console of wildfly.

With this, the method to install Wildfly 12.0.0 on Linux Mint 18.3 comes to an end.

FAQ
Q
where to download the package of Wildfly 10.0.0?
A
use the following link for download the package for wildfly
# wget http://download.jboss.org/wildfly/10.0.0.Final/wildfly-10.0.0.Final.tar.gz
Q
which command is used to run the standalone script access the browser?
A
run the standalone script access the browser using the below command
# ./standalone.sh
Q
Where to download the latest version of wildfly?
A
download the latest version of wildfly by using the following link
# wget http://download.jboss.org/wildfly/12.0.0.Final/wildfly-12.0.0.Final.zip
Q
What is this the latest version?
A
the current latest version is 13.0.0 of this.
Q
whare to find the documentation?
A
use the link to get official documentatio for this "http://docs.wildfly.org/"