Throughout this guide we will use a number of variables to denote common path names and constants:
- $TOMCAT_HOME points to the main directory of the tomcat server.
- $PLATFORM_VERSION denotes the version of the Camunda BPM platform you want to install or already have installed, e.g. 7.0.0.
- $TOMCAT_DISTRIBUTION represents the downloaded pre-packaged Camunda BPM distribution for Tomcat, e.g. camunda-bpm-tomcat-$PLATFORM_VERSION.zip or camunda-bpm-tomcat-$PLATFORM_VERSION.tar.gz.
Setup
Before you can install the Camunda components, you need to perform a number of required setup steps.
In the default configuration of the distribution, the database schema and all required tables are automatically created in an H2 database when the engine starts up for the first time. If you do not want to use the H2 database, you have to
- Create a database schema for the Camunda BPM platform yourself.
- Execute the SQL DDL scripts which create all required tables and default indices.
The SQL DDL scripts reside in the folder of the distribution:
$TOMCATDISTRIBUTION/sql/create/*_engine$PLATFORMVERSION.sql
$TOMCAT_DISTRIBUTION/sql/create/*_identity
$PLATFORM_VERSION.sql
As an alternative, you can also find a collection of the SQL scripts on our . Select the respective version and download the scripts as a zip
or tar.gz
file, then open the camunda-sql-scripts-$PLATFORM_VERSION/create
folder.
There is an individual SQL script for each supported database. Select the appropriate script for your database and run it with your database administration tool (e.g., SqlDeveloper for Oracle).
Heads Up!
If you have defined a specific prefix for the entities of your database, then you will have to manually adjust the create
scripts accordingly so that the tables are created with the prefix.
Please note further that READ COMMITED is the required isolation level for database systems to run Camunda with. You may have to change the default setting on your database when installing Camunda. For more information see the documentation on .
Add BPM Bootstrap Server Listener
Add the entry org.camunda.bpm.container.impl.tomcat.TomcatBpmPlatformBootstrap
as Listener before the GlobalResourcesLifecycleListener
in your $TOMCAT_HOME/conf/server.xml
. This class is responsible for starting and stopping the Camunda BPM platform as Tomcat is started and stopped.
Configure a JDBC Resource
To configure a JDBC Resource you have to edit the file $TOMCAT_HOME/conf/server.xml
. This could look like the following example for an H2 database:
Copy all libraries from the $TOMCAT_DISTRIBUTION/lib/
folder to the Tomcat library folder $TOMCAT_HOME/lib
:
Furthermore, you have to merge your corresponding JDBC driver into the folder $TOMCAT_HOME/lib
.
Add bpm-platform.xml
Optional Components
This section describes how to install optional Camunda dependencies onto a Tomcat server. None of these are required to work with the core platform.
Cockpit, Tasklist and Admin
The following steps are required to deploy the applications:
- Download the Camunda web application that contains both applications from our .Or switch to the private repository for the enterprise version (User and password from license required).Choose the correct version named $PLATFORM_VERSION/camunda-webapp-tomcat-$PLATFORM_VERSION.war.
- Copy the war file to $TOMCAT_HOME/webapps/camunda.war.Optionally you may name it differently or extract it to a folder to deploy it to a different context path.
- Startup Tomcat.
- Access Cockpit and Tasklist via /camunda/app/cockpit and /camunda/app/tasklist or under the context path you configured.
The following steps are required to deploy the REST API:
- Download the REST API web application archive from our Maven Nexus Server.Or switch to the private repository for the enterprise version (User and password from license required).Choose the correct version named $PLATFORM_VERSION/camunda-engine-rest-$PLATFORM_VERSION-tomcat.war.
- Copy the war file to $TOMCAT_HOME/webapps.Optionally you may rename it or extract it to a folder to deploy it to a specific context like /engine-rest.
- Access the REST API on the context you configured.For example, should return the names of all engines of the platform, provided that you deployed the application in the context /engine-rest.
Camunda Connect
Add the following artifacts (if not existing) from the folder $TOMCAT_DISTRIBUTION/lib/
to the folder $TOMCAT_HOME/lib/
:
- camunda-connect-connectors-all-$CONNECT_VERSION.jar
- camunda-connect-core-$CONNECT_VERSION.jar
- camunda-engine-plugin-connect-$CAMUNDA_VERSION.jar
- camunda-commons-utils-$COMMONS_VERSION.jar
In order to activate Camunda Connect functionality for a process engine, a process engine plugin has to be registered in$TOMCAT_HOME/conf/bpm-platform.xml
as follows:
Camunda Spin
Add the following artifacts (if not existing) from the folder $TOMCAT_DISTRIBUTION/lib/
to the folder $TOMCAT_HOME/lib/
:
- camunda-spin-dataformat-all-$SPIN_VERSION.jar
- camunda-spin-core-$SPIN_VERSION.jar
- camunda-engine-plugin-spin-$CAMUNDA_VERSION.jar
- camunda-commons-utils-$COMMONS_VERSION.jar
In order to activate Camunda Spin functionality for a process engine, a process engine plugin has to be registered in$TOMCAT_HOME/conf/bpm-platform.xml
as follows:
Add the following artifacts (if not existing) from the folder $TOMCAT_DISTRIBUTION/lib/
to the folder $TOMCAT_HOME/lib/
:
- camunda-template-engines-freemarker-$TEMPLATE_VERSION.jar
- freemarker-2.3.20.jar