Advertise with us

Search Mastertheboss

Our eBooks

How to access WildFly Admin Console

This short tutorial will teach you how to access WildFly Admin Console also known as WildFly Management Console.

WildFly Management Console is available by default at http://localhost:9990. Out of the box, you cannot connect to WildFly Management Console because there is no default Admin user for the Management Console. To add a new user execute the add-user.sh script within the bin folder of your WildFly installation and enter the requested information. By default the realm name used by WildFly is "ManagementRealm" this is already selected by default.

Here is how to add a Management User for WildFly Management Console:

$ ./add-user.sh 

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 : admin123
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 'admin123' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'admin123' to file '/home/francesco/jboss/wildfly-16.0.0.Final/standalone/configuration/mgmt-users.properties'
Added user 'admin123' to file '/home/francesco/jboss/wildfly-16.0.0.Final/domain/configuration/mgmt-users.properties'
Added user 'admin123' with groups  to file '/home/francesco/jboss/wildfly-16.0.0.Final/standalone/configuration/mgmt-groups.properties'
Added user 'admin123' with groups  to file '/home/francesco/jboss/wildfly-16.0.0.Final/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="UGFzc3dvcmQxMjM=" />

Please note that, by default, WildFly allows weak passwords for your users but will issue a warning. The password restrictions for the add-user utility script can be configured using the $JBOSS_HOME/bin/add-user.properties file.

Now you can Login to the WildFly Management Console with the User and Password:

wildfly admin console  wildfly management console

Warning: If you still cannot see the Login Pop-up chances are that you are refreshing the error page, which is localhost:9990/error/index.html

If you want to set the WildFly management console to a different IP Address, check the following tutorial: How to bind WildFly to an IP address

© 2020 mastertheboss.com. All Rights Reserved.

Please publish modules in offcanvas position.