How to Install Wildfly on windows

“WildFly  formerly known as JBoss AS, or simply JBoss, is an application server authored by JBoss, now developed by Red Hat. WildFly is written in Java and implements the Java Platform, Enterprise Edition (Java EE) specification. It runs on multiple platforms.”

In this tutorial we will be installing Wildfly on windows server 2016, however the process should be much the same on windows 10.

Installing Java

First we will download and install Java JRE. it is available from:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

And we downloaded the windows 64 bit version.

Once it downloads install it.

Downloading WildFly

Go to http://wildfly.org/downloads and click to download the Java EE7 Full & Web Distribution

When it downloads unzip it to your C drive.

Running WildFly for the first time.

Navigate to C:\wildfly-12.0.0.Final\bin and run standalone.ps1 in PowerShell

When WildFly has started you should see a screen similar to the below:

Now open a browser and navigate to http://localhost:8080 you should see the WildFly welcome screen:

 

  • Next minimise your browser and navigate back to  C:\wildfly-12.0.0.Final\bin.
  • Run add-user.ps1 with PowerShell by right clicking and selecting run with PowerShell

 

Add a management user by pressing enter at the below screen (it is the default option)

  • Enter the details of your user.
  • when asked “What groups do you want this user to belong to?” press enter
  • and then type yes to add the user for the realm ManagemntRealm

  • When asked; “Is this new user going to be used for one AS process to connect to another AS process?” type no
  • Return to the PowerShell window that has WildFly running and press ctrl+c to kill the process, the PowerShell window should close.
  • open a bowser and navigate to
    • http://localhost:9990
  • You will be promoted to log in, enter the username and password that you set and click ok.

  • You should now see the management console.

 

  • Minimise your browser and navigate back to the PowerShell window and stop wildly by running ctrl + c

Installing WildFly as a service.

  • navigate to C:\wildfly-12.0.0.Final\docs\contrib\scripts\
  • Copy the service directory to C:\wildfly-12.0.0.Final\bin

  • open up and admin CMD and navigate into C:\wildfly-12.0.0.Final\bin\service

Next run “service.bat install”

Next open windows Services, you should see WilDfly installed, you can now start it from here and set it to automatic.

a full video tutorial can be found here:

This entry was posted in Computer Science, Uncategorized and tagged , , . Bookmark the permalink.

3 Responses to How to Install Wildfly on windows

  1. Kerry Ward says:

    What is the reason you need to add a user to the management realm? I don’t see how this user figures into installing wildfly as a service. Seems like the service can be installed with out the management user.

  2. Prathamesh Rahate says:

    I am able run the Wildfly as a windows service, but when I tried to Stop the service it freeze on to the Stopping mode and only option to stop the service is to kill from Task manager

  3. priyanka says:

    Hi,
    Thank you so much… I was looking for this. it is really a nice post and well explained and most important it worked for me. only one small mistake while writing steps is ‘When asked; “Is this new user going to be used for one AS process to connect to another AS process?” type no’ here instead of no it should be yes.
    Thank u once again

Leave a Reply

Your email address will not be published. Required fields are marked *