[HOWTO] Connect IIS 8 and Tomcat 7

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\).

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.

Comments

  1. Brian Fenden says:

    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. Sergiy says:

    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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: