Note that Appway 2022.2 has been renamed FNZ Studio 2022.2. In this article it is also referred to, generically, as Platform. Appway Studio (development environment) has been renamed FNZ Studio Composition.
I need to deploy the Platform on Mac OS X using Apache Tomcat. What steps do I need to follow?
This article provides a step-by-step guide to deploying the Platform on a Mac OS X machine using Apache Tomcat as Web Server and Servlet Container. This recipe complements the more general installation guidelines, and provides the specific parameterizations needed for installation on Mac OS X.
IMPORTANT! In order to deploy the Platform, you need Java and the Apache Tomcat web server and Java Servlet container installed. Each version of Apache Tomcat supports just a given subset of Java versions.
Check the technical requirements in our
System Installation: Technical Requirements article for compatibility information for the Platform version you are installing.
This article is based on the example of a deployment of Appway 6.3.21 on Mac OS X El Capitan using Tomcat 7 and Java 8 (Oracle JDK version 1.8.x). The guide can be adapted to all Platform versions, Java, and Apache Tomcat. Remember to pay attention to compatibility, especially considering that FNZ Studio 2022.2 runs only on Java 11.
In order to run the Platform on a local machine, you need to install and set up the Apache Tomcat web server and Java Servlet container:
- Go to http://tomcat.apache.org and download the
.zip package for the desired version of Apache Tomcat. - Create your project directory (e.g:
/Users/<username>/my-project, where <username> is your system username) and unzip the downloaded file into your project directory. Tomcat will be unzipped into directory /Users/<username>/my-project/apache-tomcat-8.x.xx.xx. - For ease of use, shorten and rename this directory to
/Users/<username>/my-project/tomcat.
IMPORTANT! Do not use spaces or special characters (e.g. ü, ç) in the name of your project directory, as this may cause issues when starting the server or running the Platform.
Look at the installed Tomcat directory. It contains the following sub-directories:
- bin: Contains the startup script (
startup.bat for Windows and startup.sh for Linux and Mac OS X), shutdown script (shutdown.bat for Windows and shutdown.sh for Linux and Mac OS X) binaries, as well as other binaries and scripts. - conf: Contains the system-wide configuration files, such as
server.xml, web.xml, context.xml, and tomcat-users.xml. - lib: Contains the Tomcat system-wide JAR files, accessible by all web apps deployed on top of Tomcat. External JAR files (such as MySQL JDBC Driver) can be placed here manually.
- logs: Contains Tomcat log files. You may need to check for error messages here.
- webapps: Contains the web apps to be deployed. You can also place the WAR file for deployment here.
- work: Tomcat's working directory used by JSP, for JSP-to-Servlet conversion.
- temp: Contains temporary files.
In order to have Tomcat running on your system, make sure that you have the correct Java version installed. Open the terminal and type java -version to check which version of Java you are running.

This screenshot shows an example of Java 8 installed on a user's machine.
If Java is not installed, or is not the correct version, go to the Oracle download area and download the latest version for your machine, and install it.
- Create the file
setenv.sh using a text editor or download this sample. This file is used to configure the Apache Tomcat environment so that it can properly host the Platform. In the file, you need to specify your JAVA_HOME folder path and some parameters for the Java Virtual Machine, as depicted in Figure 1. You can retrieve the value for JAVA_HOME by running the following command in a Terminal window: /usr/libexec/java_home

Figure 1 — Setenv.sh - Copy the
setenv.sh file in the bin folder within the tomcat folder (/Users/<username>/my-project/tomcat/bin) - Give execute permissions to all
.sh files in the tomcat/bin folder.
- Open a terminal
- Navigate to the
tomcat/bin folder [cd /Users/<username>/my-project/tomcat/bin] - Run this command:
chmod +x *.sh (you may need sudo chmod +x *.sh)
- Run the command
./startup.sh in the tomcat/bin folder to start Apache Tomcat. - (optional) You can tail the Apache Tomcat log using the command:
tail -f ../logs/catalina.out
Open a browser window and navigate to http://localhost:8080. If Apache Tomcat was set up correctly, you should see something similar to the screen in Figure 2.

Figure 2 — Apache Tomcat start page
IMPORTANT! To complete setup, you require configuration files, license files, and key files. The configuration files are included here:
GuideInstallAppwayonMacOSX (ZIP file). License and key files are not included, but existing customers may request these via their assigned CSM
- Create a new directory inside
/Users/<username>/my-project/ with the name: cluster-storage. This folder is used to model the cluster-wide persistent store. All the nodes need to have access to the same folder: the persistent store. - Next, create another folder inside
/Users/<username>/my-project/ with the name: "node1". This folder is used to model a node. - Move the Tomcat folder to
node1. - Create a folder in
/Users/<username>/my-project/node1 with the name: data-home. - Create two subfolders within this data-home folder:
conf and extensions.

- Copy the
NmLoginServiceAdapter.jar file from the provided .zip file to this extensions folder. If you have other extensions to be deployed, copy the respective .jar files to the extensions folder.

- Copy the
conf.properties, content.properties, hazelcast.xml, and jaas.conf files to the conf folder. - Copy the license file to
…/data-home/conf/license.properties.
For a single-node test installation, use the license file which comes packaged in the WAR file. For all other cases, contact Support to request a license file. - (optional) Open the
conf.properties file with a Text Editor program and change the nodename and UID prefix:

IMPORTANT! The name of the cluster and the prefix must be unique! The prefix and nodename should be identical, except for capitalization.
- (optional) Edit the following line in the
content.properties file to set a name for your instance:
nm.system.id = My Appway Instance - Copy the WAR file (e.g
nm-6.3.4.war) into the tomcat/webapps folder, rename it to ROOT.war, and remove the existing ROOT folder. - Copy the
NmJAASLoginModules.jar to tomcat/lib
Define the nmdev realm in the file tomcat/conf/server.xml. Your server.xml file should look like this:

- Using the Terminal, navigate to your Tomcat bin folder:
/Users/<username>/my-project/node1/node1/tomcat/bin and start up the server running the command :
./startup.sh - (optional) You can get the log of Tomcat by running the command:
tail -f ../logs/catalina.out
Go back to your browser and navigate to localhost:8080. If everything is working correctly, you should see the following message:

Now go to the localhost:8080/admin page and you should see the login page of FNZ Studio Composition:
