Deploy to Tomcat
Overview
WaveMaker applications are packaged as a WAR (Web Application Archive) file, which can be deployed to any standard Java web server running on JDK 17 or JDK 21.
To learn how to generate a WAR file from a WaveMaker application- Generate a WAR
Supported Versions
WaveMaker applications can be deployed on Apache Tomcat 10.x.
- It is recommended to use the latest available version within the 10.x series to avoid known security vulnerabilities.
- Supported JDK versions: JDK 17 and JDK 21
Prerequisites
Before deploying the application, ensure the following:
- Apache Tomcat is installed and running
- A Tomcat user is configured with the
manager-guirole - A WaveMaker application WAR file is generated
Typical Hardware Requirements
- 4 GB RAM
- 2-core CPU
- 50 GB disk space
Actual hardware requirements depend on application complexity and expected user load.
Proper capacity planning is recommended for production environments.
Deployment Process
A WaveMaker WAR file can be deployed to Tomcat using either of the following methods:
- Copying the WAR file to the
webappsdirectory - Using the Tomcat Management Portal
Deployment from Webapps Folder
This method is the same across all supported Tomcat versions.
- Copy the WAR file into the
<TOMCAT_HOME>/webappsdirectory. - Tomcat automatically detects the WAR file and starts deployment.
- Monitor the deployment status from the Tomcat console or logs.
- Once deployment completes, access the application at:
http://localhost:8080/<ApplicationName>
Deployment Using Management Portal
Applicable for Tomcat 10.x
- Open a browser and navigate to
http://localhost:8080
(replace8080if Tomcat runs on a different port). - Click Manager App on the Tomcat home page.
- Enter the Tomcat username and password when prompted.
- In the WAR file to deploy section, select the application WAR file.
- Click Deploy.
- After deployment, the application appears in the applications list and is started by default.
- Click the application name to launch it.
Disable Compression in Tomcat
WaveMaker already generates compressed static assets during the build process.
If Tomcat compression is enabled, the server attempts to compress these files again, which may cause runtime issues in the browser.
To avoid this, compression must be disabled in server.xml.
Steps to Disable Compression
- Open
<TOMCAT_HOME>/conf/server.xml. - Locate the
Connectorelement that contains compression-related attributes. - Remove the following attributes from the
Connectortag:compressioncompressionMinSizecompressableMimeType
- Save the file and restart the Tomcat server.