Acitvating the ISAPI Redirect for Tomcat under IIS 7.5 (W2k8 R2) 64 Bit
1. Download the 64bit Isap_Redirect.dll from http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/
2. Copy the downloaded file to c:Program FilesApache Software FoundationTomcat 6.0binwin64 (or any other path)
3. Import the following registry file into the registry (change the path to the isapi_redirect.dll and to the tomcat folder).
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREApache Software FoundationJakarta Isapi Redirector1.0]
@=""
"extension_uri"="/jakarta/isapi_redirect.dll"
"log_file"="C:\Program Files\Apache Software Foundation\Tomcat 6.0\logs\isapi_redirect.log"
"log_level"="error"
"worker_file"="C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\workers.properties.minimal"
"worker_mount_file"="C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\uriworkermap.properties"
4. Open IIS Manager => Server => ISAPI and CGI Restrictions
5. Select the isapi_redirect.dll, and choose a description – also activate “Allow extension path to execute”
6. Open the Website where you want to activate the redirect and open the option “ISAPI Filters”
7. Add an ISAPI Filter with the following configuration:
Filter name: isapi_redirect (for example)
Executable: click on “…” and change to the isapi_redirect.dll folder and choose the “isapi_redirect.dll”
8. Add an “Virtual Directory” under your Website. Name it “jakarta” and choose as the path the path to the isapi_redirect.dll
9. Now open the “Handler Mappings” on the just created “Virtual Directory” and click on “Edit Feature Permissions”
11. Create a file named „workers.properties.minimal” in the “conf” folder which you can find in the tomcat folder.
Insert the following lines into this file:
#
# The workers that jk should create and work with
#
worker.list=local
#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
12. Create another file named „uriworkermap.properties” in the same directory.
Insert the following lines into this file (for a web-application named “testapp”, if your webapp is “called” “hansifransi” you must remove “testapp” and add “hansifransi”):
/testapp/*=local
13. Restart the Tomcat Service and the IIS Web-Server
14. Finished 🙂 Now you can open your Tomcat-Websites by addressing an “virtual” IIS Website.
Thanks!It’s helpful!
btw: none of this stuff works for me. It’s like something is being left out, or that IIS7.5 just simply doesn’t work with jk connector the way it should.
Sounds if you missed one step – i installed 4 or 5 IIS using this way without any problems.
worked fine for me on Win7/IIS7. Now to get NTLM to work!
Thanks
Thanks so much. This article saves a lot of my time.
You might also want to check out this software that I came across. It’s in private beta now, but should be going public soon. It automates that IIS config and all of the Tomcat ISAPI setup…
It has saved me countless hours setting up the Tomcat isapi redirect!
http://signup.burbageitsolutions.com
Cheers,
Paul
Thanks for the tip – sounds really good – was not available when I wrote the article.
Good but I’ve an issue 😦
Can you tell me something about this:
HTTP Error 500.0 – Internal Server Error
Calling GetFilterVersion on ISAPI filter “C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\jkredirect\isapi_redirect.dll” failed
Sorry i never tested it with Tomcat 7.0 – only with 6.X
Works Perfect!!! Thank you so much!!
You’re welcome 🙂
Just setup an integration between Tomcat 7.0.32 and IIS 7.5 (W2k8 R2) 64-bit. Works fine.
Just a minor correction to the above instructions. The value assigned to worker.list (e.g. local [I used worker1 instead]) in workers.properties.minimal should be used in the subsequent worker definition:
worker.local.type=ajp13
worker.local.host=localhost
worker.local.port=8009
… and also in uriworkermap.properties.
I’m getting a HTTP Error 404.0 – Not Found error with IIS 7.5. Also, the isapi_redirector.dll is not loading. Please help.
U:\>tasklist /m isa*
Image Name PID Modules
========================= ======== ============================================
w3wp.exe 9120 isapi.dll
hello, I have configured all the steps..i don’t understand how to perform step 3..can u plz give me sub-steps of the same?
Create a new file (with Extension .reg) => copy Content to file => double click on file on the server