Deploying with a H2 database


This subsection is the first tutorial about manually deploying a Frank on an Apache Tomcat application server. It uses an in-memory H2 database. In this tutorial we do not set up an external database.

As a starting point you need a Linux PC, a Linux virtual machine or a Docker container with a clean installation of Apache Tomcat. This tutorial assumes you use a Docker container. If you have a virtual machine or a real Linux server, please apply these instructions differently such that they work for your environment. You also need to download the example Frank that you will deploy in this tutorial.


You are downloading a Frank here, not a Frank configuration like the download links of Getting Started. You have one directory here that holds all the data the Frank!Framework should process. You are learning how to deploy the Frank!Framework on an Apache Tomcat application server, while Getting Started covered deploying Frank configs on the Frank!Framework.

Please extract the .zip into a directory of your choice; we refer to it as work. You should have the following directory structure:

|- configurations
   |- myConfig
      |- Configuration.xml
      |- ConfigurationReferenceProperties.xml
      |- DatabaseChangelog.xml
|- tests
   |- myConfig
      |- step1.txt
      |- step2.txt
|- Dockerfile
|- resourceDef

When you are done with these preparations, please do the following:

  1. Please make an account on Dockerhub,

  2. On the command prompt, login to Dockerhub:

    > docker login
  3. Create a Docker container from the Tomcat 7.0.99 image hosted on Dockerhub. Use the following command:

    > docker run --name tomcat-frank -p 8080:8080 tomcat:7.0.99

    This creates a Docker container named tomcat-frank. The -p 8080:8080 is added to export port 8080 to the host computer, making the Frank!Framework reachable by a webbrowser. This command does not stop by itself, so:

  4. When you see the output like INFO: Server startup in 40 ms, press Ctrl-C to stop.

  5. Start the Docker container with the following command:

    > docker start tomcat-frank

    Please note that Apache Tomcat is started automatically. You cannot run the container without running Apache Tomcat inside of it.

Deploy the Frank!Framework

Now you need to deploy the Frank!Framework within your Tomcat instance. The table below shows which files you need and where they need to be stored:















You do not have to download these files manually. For your convenience, we added a script to the example configuration. Please deploy the Frank!Framework as follows:

  1. You need a home directory on your Docker container. To do this, you need to run interactive commands within your Docker container. Please run the following command in a command prompt (Windows) or a shell (Linux):

    > docker exec -it tomcat-frank bash
  2. Your prompt changes, indicating you are within your container. Create a home directory by executing the following command:

    >> mkdir -p /home/root/Downloads
  3. You will edit text files within your container. Install the nano text editor as follows:

    >> apt-get update
    >> apt-get install nano
  4. Enter exit to exit your container.

  5. Copy directory work to your docker container. From within your work directory, enter the following command:

    > docker cp . tomcat-frank:/home/root/Downloads/work
  6. Enter your docker container again, with exactly the same command as before.

  7. Change directory to /home/root/Downloads/work:

    >> cd /home/root/Downloads/work
  8. Execute the download script you copied:

    >> chmod a+x
    >> ./
  9. With the previous step you added file /usr/local/tomcat/webapps/frankframework.war. Check that Apache Tomcat unpacks this archive. Execute the following commands:

    >> cd /usr/local/tomcat/webapps/frankframework
    >> ls

    You should see that this directory exists and that it is not empty.

  10. Enter exit to exit your container.

Add your Frank configuration

With these steps, you have deployed the Frank!Framework on your Docker container. It will not work properly yet because you do not have a configuration. Please continue as follows:

  1. Enter your Docker container with the command documented earlier.

  2. You need to set some system properties. You can define them by editing the file /usr/local/tomcat/conf/ Please open this file with text editor nano:

    >> nano /usr/local/tomcat/conf/
  3. You need to set the DTAP stage as a system property. Please add the following line to



    It is not realistic that we do a manual deployment on Tomcat but that we have DTAP stage LOC. If you are developing, use the Frank!Runner if possible. We choose DTAP stage LOC because we are including a Larva test in our deployment, which is not realistic in a production environment.

By default, the Frank!Framework expects that there is one configuration, and that the name of this configuration equals the value of property This default configuration is expected to be part of the webapplication.


Do not confuse this default behavior of the Frank!Framework with the Frank!Runner. The Frank!Runner overrides this default behavior, which is why you do not read about this in chapter Getting Started.

  1. You are going to tell the Frank!Framework what configurations you have, overriding the default behavior explained above. Please add the following to

  2. Frank configs can be stored in multiple ways. Storing them within a directory is only one of the possibilities. Alternatively, Frank configs can be stored in the database of the Frank!Framework. Please tell the Frank!Framework that configuration myConfig appears in a directory by adding the following to

  3. The configurations directory is stored outside the deployment on your application server. You can use the copy you stored in /home/root/Downloads/work/configurations. This is not the default location expected by the Frank!Framework. You have to tell the Frank!Framework that you choose a custom directory for your configurations. Please add the following line to
  4. Franks have a tests directory. This directory contains automated tests that can be executed using the Larva service. The Frank!Framework needs two system properties to be able to find them. Please append the following to
    scenariosroot1.description=My Larva tests
  5. Each deployment of the Frank!Framework needs to define property When you use the Frank!Runner this is handled automatically, but now you have to set this property yourself. Please add the following line to
  6. Finally configure your database by configuring a JNDI resource, see for more information. Please add the following lines to /usr/local/tomcat/conf/context.xml:

        URL="jdbc:h2:/usr/local/tomcat/logs/ibisname" />

    These lines should be placed to the end of the file, right before the last line </Context>. It is important that the <Resource> tag is inside of the <Context> tag.


    The JNDI name jdbc/frank2tomcat is referenced automatically by the Frank!Framework to initialize the database. This is the referenced JNDI name because you gave property the value Frank2Tomcat. The Frank!Framework automatically calculates property by converting all characters of the value of to lower case. Property gets the value frank2tomcat. The JNDI name of the database is obtained by prepending jdbc/. For detauls see section The Database.

  7. Enter exit to exit from your Docker container.

With these steps you have added your Frank configuration and you have configured its database.

Test your work

You can test your work with the following steps:

  1. Restart your docker container with the following commands:

    > docker stop tomcat-frank
    > docker start tomcat-frank
  2. Remember that you exported port 8080 of your container. When you access port 8080 of your host computer, you reach into your container. Please start a webbrowser and go to http://localhost:8080/frankframework. You should see the following.

  3. You are in the Adapter Status screen (number 1). The instance name is “Frank2Tomcat” (number 3). Your configuration “myConfig” appears as a tab (number 4).


    Please note the difference between the URL (number 2) and the instance name (number 3). The word “frankframework” in the URL is there because you deployed the Frank!Framework in file “frankframework.war”. You configured the instance name in file “”.

  4. Please click “Configuration messages” (number 5) to see that there are no error messages.

  5. If you have errors, you can click “Environment Variables” (number 6). Using Ctrl-F you can search for properties. Do you see all properties you should have defined in “”?

  6. If you have errors, you can also examine the output produced by Tomcat. If you are using docker, use the command docker logs tomcat-frank.


    Also if everything is well, you will probably see a lot of errors. The reason is that Apache Tomcat was already running while you were deploying your Frank. The errors were produced when your Frank was not complete. Please look for the moment that you restarted your container. Only errors after that monent are relevant.

  7. If you have no errors, you can proceed to testing your deployed configuration. Press “Testing” in the figure below. The “Testing” menu item expands as shown:

  8. Press “Test Pipeline”. You are in the “Test Pipeline” screen (number 1 in the figure below). Choose adapter “AccessProperties” (number 2), which is part of the example Frank configuration. Enter an arbitrary message (number 3) and press “Send” (number 4).

  9. Check that you get the result message From stage LOC, I say My text is Hello (number 5) and that processing was successful. You should see a green bar with the word “success” (number 6).

  10. Please click “Larva” as shown in the screen below:

  11. You see you are in the Larva screen (number 1 in the figure below). Please choose “/myConfig/” (number 2) and “My Larva tests” (number 3) to select all tests. Number 3 shows the value you configured in system property scenariosroot1.description. Press “start” (number 4) to run your tests.

  12. Check that your tests succeed (number 5).