Goal of this section: Install and run Flowable 6.7.2 on Tomcat 9. At the end, you should be able to open Flowable IDM in your browser at http://localhost:8080/flowable-idm/ and log in with admin/test.
To download and run Flowable you need (in order):
Right-click on **This PC** → **Properties** → **Advanced system settings** → **Environment Variables...**
Under **System variables**, click **New...** and create:
**Variable name:** `JAVA_HOME`
**Variable value:** `C:\Program Files\Eclipse Adoptium\jdk-11.x.x`
Still under System variables, select Path → Edit... → New and add:
%JAVA_HOME%\bin
//Edit your shell configuration file (e.g. **~/.bashrc**) and add:
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
export PATH="$JAVA_HOME/bin:$PATH" </code>
//Then reload the configuration:
source ~/.bashrc
java -version
echo %JAVA_HOME% (on Windows)
echo $JAVA_HOME (on Linux)
- Download Apache Tomcat 9 from: https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.112/bin/apache-tomcat-9.0.112.zip
- Extract the archive into your working directory, for example:C:\apache-tomcat-9.0.xx\
This directory will be referred to as TOMCAT_HOME.
- Start your Tomcat:
TOMCAT_HOME\bin\startup.bat
TOMCAT_HOME/bin/startup.sh
- open in your browser:
- Download flowable-6.7.2.zip from the official Flowable 6.7.2 release page: (https://github.com/flowable/flowable-engine/releases/download/flowable-6.7.2/flowable-6.7.2.zip) - Save the file and extract it into your working directory, for example:C:\flowable-6.7.2\ - Inside this directory, locate the wars subdirectory: “C:\flowable-6.7.2\wars\”
+ flowable-ui.war
+ flowable-rest.war
- Copy the following WAR files from C:\flowable-6.7.2\wars\ to the webapps folder of Tomcat, for example:
From: C:\flowable-6.7.2\wars\flowable-ui.war To: TOMCAT_HOME\webapps\flowable-ui.war From: C:\flowable-6.7.2\wars\flowable-rest.war To: TOMCAT_HOME\webapps\flowable-rest.war
- Test flowable:
//On Windows: execute (in your cmd)
TOMCAT_HOME\bin\startup.bat
// On Linux: execute (in your terminal)
TOMCAT_HOME/bin/startup.sh
- You should see the Flowable IDM login page.
- Login as administrator:
- After login, you will have access to the Flowable web applications through the menu (IDM, Modeler, Task, Admin).
Where to check in case of errors (very important):
TOMCAT_HOME\logs\
catalina.YYYY-MM-DD.log – general server and application startup log
localhost.YYYY-MM-DD.log – web application specific errors
Important note about the database:
By default, Flowable uses an H2 database (file-based) for testing. Data may not be persistent or robust enough for long-term use.
In the next section, you will configure Flowable to use a MySQL database instead.
CREATE DATABASE flowable CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER 'flowable'@'%' IDENTIFIED BY 'flowablepw'; GRANT ALL PRIVILEGES ON flowable.* TO 'flowable'@'%'; FLUSH PRIVILEGES; </code>
From: C:\path\to\download\mysql-connector-j-8.0.33.jar To: TOMCAT_HOME\lib\mysql-connector-j-8.0.33.jar
TOMCAT_HOME\lib\application.properties
# ==== JDBC settings for MySQL ==== spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/flowable?characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC spring.datasource.username=flowable spring.datasource.password=flowablepw # ==== Flowable schema handling ==== # This will automatically create/update the Flowable tables in the database flowable.database-schema-update=true
// On Windows: (in your cmd) TOMCAT_HOME\bin\shutdown.bat TOMCAT_HOME\bin\startup.bat // On Linux: (in your terminal) TOMCAT_HOME/bin/shutdown.sh TOMCAT_HOME/bin/startup.sh
USE flowable; SHOW TABLES;
If Tomcat does not start or Flowable pages show HTTP 500 errors after enabling MySQL, check the following:
1) Tomcat logs directory:
2) Typical problems and messages:
Once no more errors appear in logs and Flowable is accessible, your configuration with Flowable 6.7.2 + Tomcat 9 + MySQL is complete. 🎉🎉🎉🎉