Custom Tomcat installation
This page explains how to install Bonita Runtime in an existing Tomcat server.
Remember that the recommended way of installing Bonita is through a self-contained application. |
This installation procedure only specifically targets the Java EE application servers that have been installed under a single root folder (typically, from a .zip file). Thus, for installations using native distribution packages (that more often than not split the binaries and the configuration files into separate folder hierarchies), it would be up to you to adapt the documented steps to your very own folder layout. |
Installation
-
Download the Tomcat bundle file from the Bonitasoft download page for the Community edition or from the Customer Service Center for Subscription editions.
-
Unzip it into a temporary folder (
BUNDLE_DIRECTORY
). -
Follow the Tomcat bundle steps.
Tomcat installation
Install Bonita Runtime in the Tomcat server
Copy, from the bundle into your Tomcat server (TOMCAT_DIRECTORY
):
-
BUNDLE_DIRECTORY/server/bin/setenv.sh
orBUNDLE_DIRECTORY/server/bin/setenv.bat
, depending if you are on Unix or Windows, toTOMCAT_DIRECTORY/bin
-
The entirety of the bundle
BUNDLE_DIRECTORY/server/conf
folder toTOMCAT_DIRECTORY/conf
-
The entirety of the bundle
BUNDLE_DIRECTORY/server/lib/bonita
folder toTOMCAT_DIRECTORY/lib/bonita
-
The
BUNDLE_DIRECTORY/server/webapps/bonita
toTOMCAT_DIRECTORY/webapps
-
The and
BUNDLE_DIRECTORY/webapps/ROOT/favicon.ico
toTOMCAT_DIRECTORY/webapps/ROOT/
-
The entirety of the
BUNDLE_DIRECTORY/setup
directory at the root of your tomcat serverTOMCAT_DIRECTORY
. -
The entirety of the
BUNDLE_DIRECTORY/tools/request_key_utils-
. Includes script files to generate license request keys toTOMCAT_DIRECTORY/tools/request_key_utils-
.
Some of the libraries copied from the bundle
For such libraries, you should only keep the ones copied from the bundle under |
Some configuration files from the bundle will overwrite some default tomcat configuration files. Proceed with care in a tomcat where other applications are already installed. |
Data sources configuration
-
Open the file
TOMCAT_DIRECTORY/conf/Catalina/localhost/bonita.xml
-
Remove or comment out the lines regarding the h2 database.
-
Uncomment the lines matching your RDBMS.
-
Update following attributes value:
-
username: your RDBMS user name.
-
password: your RDBMS password.
-
url: the URL, including the RDBMS server address, RDBMS server port and database (schema) name.
-
-
There are 4 datasources declared. Make sure you made the change for them all, named RawBonitaDS, bonitaSequenceManagerDS, RawBusinessDataDS, NotManagedBizDataDS.
License installation
If you are installing a Subscription edition, you need to request a license.
When you receive your license, copy the file to the TOMCAT_DIRECTORY/setup/platform_conf/licenses
folder of your application server.
Database initialization
We assume here that the database has already been created and configured for Bonita. Once created and configured you need to initialize it using the setup tool provided in the bundle. This will create database schema and initial values.
-
In
TOMCAT_DIRECTORY/setup
folder, edit the filedatabase.properties
with properties matching your RDBMS. Beware of backslash characters. -
In
TOMCAT_DIRECTORY/setup
folder, runsetup.(sh|bat) init
Next steps
You are done with Bonita installation. You can now start your application server as usual.
You can also complete the setup of your system by validating the installation, setting passwords, and creating the technical user who will act as the Super Administrator.