Custom Deployment
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. |
Remember that the recommended way of installing Bonita is to use the provided Tomcat bundle. |
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 Platform in Tomcat
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.war
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. |
There is an issue on tomcat 8.0.32 preventing the portal Look & feel to be compiled. If you deploy bonita on an existing tomcat installation, make sure it is a different version of tomcat (preferably 8.5.x with x>=23). |
Configure data sources
-
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’re done with Bonita installation. You can now start your application server as usual. When you have finished installing the deploy bundle, complete the setup of your system by validating the installation, setting passwords, and creating the Administrator user.