Learn how to a build a cloud-first strategyRegister Now


IIS 6.0 Won't Serve JSP Pages Through Tomcat 6/ISAPI_Redirect

Posted on 2007-10-03
Medium Priority
Last Modified: 2016-12-08
I have a Windows Server 2003 box running IIS 6.0 and Apache Tomcat 6.  We are running a web application written in Java called JIRA through Tomcat 6 and Java 1.6.  JIRA works great through Tomcat when you serve it over port 8080; however, we want to serve the pages through IIS and have it pass the processing of the Java side of things through to Tomcat.

I have followed the instructions at JIRA's site (http://www.atlassian.com/software/jira/docs/v3.11/iisintegration.html) and also the ones on Tomcat's site (http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html) for configuring isapi_redirect.dll to allow IIS to integrate with Tomcat.

I have "isapi_redirect.dll" setup in IIS 6.0 as an enabled Web Service Extension and also have it setup on "Default Web Site" as an ISAPI filter.  My "isapi_redirect.log" file is empty (it is the log file specified in the "isapi_redirect.properties" file).  My IIS logfile from "C:\WINDOWS\system32\LogFiles\W3SVC1" shows 500 errors:

2007-10-02 20:23:09 W3SVC1 GET / - 80 - Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322) 500 0 1
2007-10-02 20:23:12 W3SVC1 GET /jira - 80 - Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322) 500 0 1

and my web page being served by IE has the title of "Error" and the page simply says "Incorrect function."

I get this error rather the Tomcat service is running or not.  I don't know if this is a permissions problem on the /jakarta/ virtual directory or the physical directory that has the "isapi_redirect.dll" file in it.  I am clueless at this point and decided to turn to another source for help on this.  I'm not sure what else I may need to post here to help troubleshoot this.  One of the troubleshooting things I found was to run "tasklist /M isapi_redirect.dll" and it should return "w3wp.exe" which it now does (but did not this morning).  I also do not believe this is a JIRA specific error which is why I am posting here first rather than JIRA's support site.
Question by:CincinanstyKid

Author Comment

ID: 20009776
Here is some extra information:

Tomcat is installed in C:\Program Files\Apache Software Foundation\Tomcat 6.0\ and the Tomcat ISAPI_Redirector is installed in C:\Program Files\Apache Software Foundation\Tomcat 6.0\jkredirect\

C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\server.xml contains this line:
<Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

C:\Program Files\Apache Software Foundation\Tomcat 6.0\jkredirect\isapi_redirect.properties contains this:
log_file="C:\Program Files\Apache Software Foundation\Tomcat 6.0\jkredirect\logs\isapi_redirect.log"
worker_file="C:\Program Files\Apache Software Foundation\Tomcat 6.0\jkredirect\conf\workers.properties"
worker_mount_file="C:\Program Files\Apache Software Foundation\Tomcat 6.0\jkredirect\conf\uriworkermap.properties"

C:\Program Files\Apache Software Foundation\Tomcat 6.0\jkredirect\conf\uriworkermap.properties:

C:\Program Files\Apache Software Foundation\Tomcat 6.0\jkredirect\conf\workers.properties:

C:\Program Files\Apache Software Foundation\Tomcat 6.0\jkredirect\logs\isapi_redirect.log was manually created by me but is still 0 bytes in size.

Accepted Solution

mahnsc earned 2000 total points
ID: 20208057
I had the same issue, which I just fixed.  In my case, my isapi_redirect.dll was the latest version but there were deprecated directives loaded within my workers.properties file.  I changed them to utilize current worker directives, and the Incorrect Function message went away.

In your case, it could also be due to the spaces in the path name.  Try moving your uriworkermap.properties, workers.properties, and isapi_redirect into a directory like "c:\jkconnector"

Finally, and this could be way off and I've no real experience yet with tomcat 6, but the directives that you are loading within isapi_redirect.properties should actually be stored in the registry.  The tomcat connector, IIS how-to document details what keys and values should be stored there.  (URL is:  http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html)  The one item missing from this particular document is that you need to create a 'jakarta' web service extension allowing access to the isapi_redirect application extension.

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month21 days, 6 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question