How to install Wildfly on Mac

The easiest way is to install through Homebrew, the free open-source package managment system.

Install Wildfly

Download and install through brew package managment

macbookpro$ brew update
Already up-to-date.
macbookpro$ brew search wildfly
macbookpro$ brew install wildfly-as
==> Downloading
##########                                                                14.6%
==> Caveats
The home of WildFly Application Server 10 is:
You may want to add the following to your .bash_profile:
  export JBOSS_HOME=/usr/local/opt/wildfly-as/libexec
  export PATH=${PATH}:${JBOSS_HOME}/bin
==> Summary
🍺  /usr/local/Cellar/wildfly-as/10.0.0.Final: 1,180 files, 153.4M, built in 7 minutes 18 seconds

And you are almost all set.

Add the environment variables

macbookpro$ cd /usr/local/opt/wildfly-as/libexec/bin
macbookpro$ ./

  JBoss Bootstrap Environment

  JBOSS_HOME: /usr/local/opt/wildfly-as/libexec

  JAVA: java

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


12:49:37,085 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final
12:49:38,033 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
12:49:38,115 INFO  [] (MSC service thread 1-6) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
12:49:38,974 INFO  [] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
12:49:38,987 INFO  [org.xnio] (MSC service thread 1-6) XNIO version 3.3.4.Final
12:49:38,992 INFO  [org.xnio.nio] (MSC service thread 1-6) XNIO NIO Implementation Version 3.3.4.Final
12:49:39,023 WARN  [] (ServerService Thread Pool -- 54) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
12:49:39,034 INFO  [] (ServerService Thread Pool -- 38) WFLYCLINF0001: Activating Infinispan subsystem.
12:49:39,038 INFO  [] (ServerService Thread Pool -- 37) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
12:49:39,046 INFO  [] (ServerService Thread Pool -- 44) WFLYJSF0007: Activated the following JSF Implementations: [main]
12:49:39,081 INFO  [] (ServerService Thread Pool -- 46) WFLYNAM0001: Activating Naming Subsystem
12:49:39,088 INFO  [] (ServerService Thread Pool -- 56) WFLYWS0002: Activating WebServices Extension
12:49:39,105 INFO  [] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem
12:49:39,111 INFO  [] (MSC service thread 1-1) WFLYSEC0001: Current PicketBox version=4.9.4.Final
12:49:39,112 INFO  [] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
12:49:39,121 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0003: Undertow 1.3.15.Final starting
12:49:39,121 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0003: Undertow 1.3.15.Final starting
12:49:39,122 INFO  [] (MSC service thread 1-8) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.2.Final)
12:49:39,135 INFO  [] (MSC service thread 1-2) WFLYJCA0018: Started Driver service with driver-name = h2
12:49:39,159 INFO  [org.jboss.remoting] (MSC service thread 1-6) JBoss Remoting version 4.0.18.Final
12:49:39,194 INFO  [] (MSC service thread 1-5) WFLYNAM0003: Starting Naming Service
12:49:39,194 INFO  [] (MSC service thread 1-4) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
12:49:39,317 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0014: Creating file handler for path '/usr/local/opt/wildfly-as/libexec/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
12:49:39,347 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0012: Started server default-server.
12:49:39,349 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0018: Host default-host starting
12:49:39,393 INFO  [] (MSC service thread 1-3) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 32 (per class), which is derived from the number of CPUs on this host.
12:49:39,393 INFO  [] (MSC service thread 1-2) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 128 (per class), which is derived from thread worker pool sizing.
12:49:39,457 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0006: Undertow HTTP listener default listening on
12:49:39,541 INFO  [] (MSC service thread 1-5) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
12:49:39,647 INFO  [] (MSC service thread 1-2) WFLYDS0013: Started FileSystemDeploymentService for directory /usr/local/opt/wildfly-as/libexec/standalone/deployments
12:49:39,815 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-1) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.0.Final
12:49:39,815 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-7) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.0.Final
12:49:39,815 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-3) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.0.Final
12:49:39,872 INFO  [] (MSC service thread 1-5) JBWS022052: Starting JBossWS 5.1.3.Final (Apache CXF 3.1.4) 
12:49:40,088 INFO  [] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on
12:49:40,088 INFO  [] (Controller Boot Thread) WFLYSRV0051: Admin console listening on
12:49:40,089 INFO  [] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) started in 3425ms - Started 267 of 553 services (371 services are lazy, passive or on-demand)

 [Optional] Add user to manage the server

macbookpro$ ./ 
What type of user do you wish to add? 
 a) Management User ( 
 b) Application User (
(a): a

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : philippe.wanner
Password recommendations are listed below. To modify these restrictions edit the 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 : 
WFLYDM0101: Password should have at least 1 digit.
Are you sure you want to use the password entered yes/no? yes
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 'philippe.wanner' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'philippe.wanner' to file '/usr/local/Cellar/wildfly-as/10.0.0.Final/libexec/standalone/configuration/'
Added user 'philippe.wanner' to file '/usr/local/Cellar/wildfly-as/10.0.0.Final/libexec/domain/configuration/'
Added user 'philippe.wanner' with groups  to file '/usr/local/Cellar/wildfly-as/10.0.0.Final/libexec/standalone/configuration/'
Added user 'philippe.wanner' with groups  to file '/usr/local/Cellar/wildfly-as/10.0.0.Final/libexec/domain/configuration/'
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? no

Log in the management console

Go to http://localhost:9990/console/ and enter your credentials

Screen Shot 2016-07-03 at 13.11.03

And then you get your dashboard

Screen Shot 2016-07-03 at 13.14.26.png

How to install Wildfly on Mac

3 thoughts on “How to install Wildfly on Mac

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s