In order to set up Microsoft Internet Information Server to serve Java Server Pages (JSP) and servlets, you need to install the Jakarta isapi redirector. After a successful installation, IIS will work as before, except when a JSP or a servlet is encountered, IIS will pass the query to Tomcat, which will process and send the results back to IIS.
Setting up the redirector is quite not trivial, so we decided to build an installer (and uninstaller).
Prerequisites:
- A running IIS 4.0 or later. (Is your IIS running?, try http://localhost ). The installer has been tested using IIS4.0-6.0 on Windows NT4 SP6a/2000 Server/XP Professional/Server 2003.
- A running Tomcat 4.1.29 or 5.0.16 or later. Other versions may work, but have not been tested. (Is your Tomcat running?, try http://localhost:8080 )
- Download our (updated for Tomcat6) installer setupJk204t6.exe .
Installation:
Start setupJk204t6.exe. During installation you will be asked which directories of your $TOMCATDIR/webapps path should to be redirected from IIS to tomcat. That's all.
The installer sets up the redirector for your default (first) webserver.
To change the mappings after installation edit the $TOMCATDIR/conf/workers2.properties file.
(Have a look at the Jakarta docs for enhanced configuration)
Source code:
The installer is build with Nullsoft´s NSIS.
Download the source code: jk2.zip to check or improve the installer.
The script and the installer are free, but provided 'as-is', without any express or implied warranty.
This script uses Ximon Eighteen's aka Sunjammer's services.dll plugin and Mathias Hasselmann AccessControl.dll plugin
In order to get the script compiled you need these two additional plugins,
which has to be placed inside the NSIS plugin directory.
You will get them here:
http://nsis.sourceforge.net/File:Services.zip
http://nsis.sourceforge.net/AccessControl_plug-in
.
