Apache tomcat is one of the most popular application servers on java platform. But when it comes to serving static web content in parallel with web applications, there should be a clear separation of job role as http servers like apache and IIS are better at serving static content.
This can be achieved by leaving static content to IIS and routing dynamic part to Tomcat. Thanks to apache , this is possible with JK connector which is an isapi filter, can be configured to work with IIS (checked with 5 and 6).
So,let's get started!

This can be achieved by leaving static content to IIS and routing dynamic part to Tomcat. Thanks to apache , this is possible with JK connector which is an isapi filter, can be configured to work with IIS (checked with 5 and 6).
So,let's get started!
- We need the connector extension installed first!
- Download and install the isapi extension (no hassel)
- By default the filter installs in C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector. All the configuration files (workers.properties.minimal and uriworkermap.properties) are found in the directory named conf.
- make sure tomcat has an ajp listener running on the same port as mentioned in workers.properties.minimal
- Look for the following lines in server.xml in <Tomcat base>/conf to make sure ajp is enabled
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> - add a couple of context forwarding (you can add /manager/*=wlb
just to check!)to tomcat in uriworkermap.properties - run tomcat
- Open the Internet Information Services(IIS) manager.
- Browse to <server name> -> Web Sites
- Right click on Default Web Site, then select New -> Virtual Directory.
Enter Jakarta for Alias name and select jakarta isapi redirector install dir/bin as directory. - For the permission page, select both Read and Execute check boxes.
Click Apply and close the dialog. - Right click on Default Web Site, and select properties.
In the popup dialog, select the ISAPI Filters tab.
Click Add. - Enter jakarta for Filter name, and jakarta isapi redirector install dir\bin\isapi_redirect.dll as executable.
Click Apply and close the dialog box. - Right click on Web Service Extensions and select Add a new Web service extension. Enter tomcat connector for Extension Name, and add jakarta isapi redirector install dir\bin\isapi_redirect.dll for required files field.
Select the Set extension status to Allowed check box and click OK to close the dialog box. - Stop and restart the Default Web Site by right clicking on it and select Stop and Start.
- If that doesn't work try restarting iis admin service from IIS in MMC

