Iis – Having difficulty connecting IIS to Tomcat

iistomcat

I'm attempting to set IIS up as a 'front end' for Tomcat but have run into a frustrating issue. I can't seem to get the Tomcat connector to recognize when it should be handling the appropriate requests. The isapi_redirect.dll seems to be getting initialized successfully according to the log file, but that's as far as it goes:

[Thu Dec 05 13:00:14.811 2019] [2148:5332] [info] init_jk::jk_isapi_plugin.c (2490): Starting Tomcat/ISAPI/isapi_redirector/1.2.46
[Thu Dec 05 13:00:14.811 2019] [2148:5332] [info] init_jk::jk_isapi_plugin.c (2687): Tomcat/ISAPI/isapi_redirector/1.2.46 initialized

I'm also not seeing this in the IIS log file
GET "/jakarta/isapi_redirect.dll HTTP1.1 which seems to further indicate the redirector doesn't recognize that it should handle the request.

I know Tomcat itself is working because I can browse to 'localhost:8080/examples' which contains some sample Java Servlets to run under Tomcat. However, when I navigate to 'localhost/examples' which should be forwarded from IIS to Tomcat, I get an HTTP 404 error. I've trawled forum post after forum post looking for clues and insights but have come up empty handed so far.

I am currently running Windows Server 2016 on a virtual machine and have IIS 10 and Apache 8.5.49 installed (previously tried Apache 9.0.29). I'm also using version 1.2.46 of the isapi_redirect.dll. I've explicitly followed the how-to guide here: Apache ISAPI connector how-to

I'm beginning to wonder if this issue is related to IIS 10 itself.

Does anyone have any suggestions? If I've omitted any information that would be helpful, please let me know and I can provide it.

Thanks

Best Answer

I seem to have figured this out after a lot of digging in the tomcat log files. Apparently step 6A in the tutorial I linked to above breaks Tomcat. I changed "Connector port=”${port.http}" to "Connector port=”8080" and it started working.