How To Configure IIS 6.0 and Tomcat with the JK 1.2 Connector
You should now be able to start the Tomcat service on your server. If the service doesn’t start it could be due to a problem with Tomcat not being able to find a certain DLL on your server. You can read more about this issue here : http://www.iisadmin.co.uk/?p=22
Now that you have Tomcat up and running you can test your installation by pointing your server’s browser at http://localhost:8080 and you should see the default Tomcat welcome page as shown here.
Now that we have got Tomcat working we need to configure the JK 1.2 Connector which will allow IIS to effectively act as a proxy and forward requests on to Tomcat. Start by creating a folder called ‘ISAPI’ under the Tomcat root folder. Then copy the isapi_redirect-1.2.26.dll file into the ‘ISAPI’ folder and rename the file to isapi_redirect.dll as shown here.
In order to configure the Tomcat connector you need to either add an entry in the Windows registry or you can use the isapi_redirect.properties file. The isapi_redirect.properties file tells the connector where to find its configuration files and also where the isapi_redirect DLL file is located within IIS. If you have used the same directory structure as I have you can configure your isapi_redirect.properties file as shown here.
We also need to either update or create the two Tomcat connector configuration files (workers.properties and uriworkermap.properties) so that the connector knows how to handle the requests it receives. These configuration files are documented on the Tomcat web site here : The Apache Tomcat Connector - Reference Guide
If you have just installed Tomcat with the sample applications then you can copy the sample uriworkermap.properties file shown here. Both config files need to placed in the Tomcat ‘conf’ folder which in this example is C:\Tomcat\conf
You can also copy the sample workers.properties file as shown below and save it to the C:\Tomcat\conf folder.
Now we need to configure IIS. Start by creating a virtual directory and give it an alias of ‘jakarta’ as shown here. Incidentally, you don’t have to call the virtual directory ‘jakarta’ - you can actually give it any name you like, just so long as the name you choose appears in the extension_uri line of your isapi_redirect.properties file.
Select ‘C:\Tomcat\ISAPI’ as the virtual directory path and then click Next.
The Tomcat connector virtual directory requires the Execute permission in order to function correctly, so click the options shown below and click Next