[Last Call] Learn how to a build a cloud-first strategyRegister Now


Tomcat 5.5 connector to IIS6  - isapi_redirector2 problems

Posted on 2006-05-02
Medium Priority
Last Modified: 2012-06-21
win2003 with IIS6, installed JRE 5.0 & tomcat 5.5.17 - all example pages work on port 8080.
installed the JK2.0.4 connector for IIS with isapi_redirector2 and I get "Service Unavailable" when I try the same example with port 80.
I followed these instructions: http://www.iis-resources.com/modules/AMS/article.php?storyid=485
everything on my server show like this beside of one thing: workers2.properties file doesn't show as a "java properties" file on my server.
I have 2 thoughts about possible problems:
either the properties files aren't recognized as java properties or the file itself require some modifications that I'm not aware of.
Question by:chuku
  • 2
  • 2
LVL 10

Expert Comment

ID: 16591016
JK2 is deprecated and has been unsupported for more than a year now.  That means it has problems that will never be fixed.  Development has continued on the original JK instead -- so for starters, you will probably want to considre using JK instead of JK2.

"IMPORTANT NOTE: The JK 2 connector is now deprecated. Use JK or  mod_proxy_ajp instead."

I wouldn't expect workers2.properties to show as a "java properties" file.  What does kind of file does it say it is?  On my servers, they say "PROPERTIES file".  You probably just want to make sure it's not workers2.properties.txt or something, with file extension display turned off in Explorer.

What are the contents of your workers2.properties file?  Do they make sense for your server?
LVL 17

Author Comment

ID: 16595475
workers2.properties show as "PROPERTIES file"  on my server too, I just wondered since the HowTo article show it as "JAVA file"
about the content, I used the file in that HowTo & just changed the path to my server's:
info=Shared memory file. Required for multiprocess servers
file=E:\Tomcat 5.5\shm file\jk2.shm

info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol

info=JSP examples, map requests for all JSP pages to Tomcat.

info=Servlet examples, map requests for all servlets to Tomcat.
LVL 10

Accepted Solution

sleep_furiously earned 500 total points
ID: 16607031
The file extension association is probably from some java development environment the author of the HowTo article had installed, like Eclipse or NetBeans.

Some possible steps:
-- Try changing the file path for the SHM file to forward slashes instead of backslashes.  (Also, it's sometimes safer to use directory names that don't have spaces in them.)

-- Make sure IIS_WPG has permissions to "E:\Tomcat 5.5\shm file" and its contents

-- Look in the Windows Event Viewer > Application to see if JK2 is logging errors.

Alternately, change config in workers2.properties to have JK2 to log to a file :

# Alternate file logger
file=E:/Tomcat 5.5/logs/jk2.log

info=Global server options
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues


LVL 23

Expert Comment

ID: 16610623
LVL 23

Assisted Solution

rama_krishna580 earned 500 total points
ID: 16610627

The ISAPI redirector can read it's configuration from a properties file instead of the registry. This has the advantage that you can use multiple ISAPI redirectors with independant configurations on the same server. The redirector will check for the properties file during initialisation, and use it in preference to the registry if present.

Create a properties file in the same directory as the ISAPI redirector called isapi_redirect.properties i.e. with the same name as the ISAPI redirector DLL but with a .properties extension. A sample isapi_redirect.properties can be found under the conf directory.

The property names and values in the properties file are the same as for the registry settings described above. For example:

# Configuration file for the Jakarta ISAPI Redirector

# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges

# Full path to the log file for the ISAPI Redirector

# Log level (debug, info, warn, error or trace)

# Full path to the workers.properties file

# Full path to the uriworkermap.properties file


Back-slashes - '\' - are not escape characters.
Comment lines begin with '#'.


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

834 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