For evaluation purposes I wanted to run Activiti BPM Platform on an Apache Tomcat 7 which is connected to IIS 8 using ajp13.

I decided to use the Apache Tomcat Connector to connect Apache Tomcat 7 to IIS 8. As a prerequisite I installed Apache Tomcat 7 as a service (download tomcat 7).

Setup

To set up the connection I followed the steps described in section Configuring the ISAPI Redirector of the IIS HowTo. Instead of creating a registry key as described in step 1 to 6 I placed the following properties file in the same directory as the isapi_redirect.dll file (c:\tomcat\bin\win32\i386\).


# Configuration file for the Jakarta ISAPI Redirector
# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges
extension_uri=/jakarta/isapi_redirect.dll
# Full path to the log file for the ISAPI Redirector
log_file=c:\tomcat\logs\isapi_redirect.log
# Log level (debug, info, warn, error or trace)
log_level=info
# Full path to the workers.properties file
worker_file=c:\tomcat\conf\workers.properties
# Full path to the uriworkermap.properties file
worker_mount_file=c:\tomcat\conf\uriworkermap.properties

The troubles began with item number 7. I didn’t know what to do when reading the following sentence:

While creating this new virtual directory assign it with execute access.

There was no closer description how to perform the assignment of execute access. It cost me some time and caused me some troubles to find it out. The subsequent pictures show the detailed steps to assign execute access to the virtual directory.

handler-mappings-1

handler-mappings-2

handler-mappings-3

To get the things up and running on IIS 8 I additionally had to add an ISAPI restriction as shown in the screenshots below.

isapi-cgi-restrictions-1

isapi-cgi-restrictions-2

Sample properties files

Using the following properties files in combination with the isapi_redirect.dll will enforce IIS to redirect all requests done to the activiti explorer and to the activiti REST endpoint to the Apache Tomcat 7 instance defined as worker1.


# The workers that jk should create and work with
worker.list=worker1
# Worker named worker1 and of type ajp13
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009


/admin/*=worker1
/manager/*=worker1
/activiti-explorer*=worker1
/activiti-rest*=worker1
/examples/*=worker1

3 Comments »

  1. Have you tried the BonCode connector. It seems much easier to do. Just run the installer. I think the site is boncode.net

  2. Hi Brian,
    Thanks for the hint. I tried a few things. To be honest I don’t know if BonCode was part of my trials as it’s been way too long since I did the try out.

  3. Oh, thank you very much!
    Your hint about “execute access” just save me a lot of time!
    And the hint about file instead of registry keys seems to me more convenient way.
    Thanks!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.