• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Configuring Tomcat 4 with IIS 6

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is getting very frustrating.
I have a Win2003 Server with a working IIS web server. The Java installation is 1.4.2_04_b5.

I have Tomcat 4.1.30 installed as a service on this machine and it is serving pages on port 8080 just fine. I can talk to the Administrator and Manager apps and see the examples.

I am trying to get IIS to use Tomcat for selected URIs - using the recommended JK2 connector isapi_redirect2.dll freshly downloaded. I can configure IIS to show the connector with green arrow, so it looks like IIS is talking to the redirector.

My frustration comes in trying to figure out what goes in the tomcat /conf configuration files. The connector download comes with a worker2.properties.sample which you are supposed to be able to just plug in and go! Didn't work.

However, the contents of that sample look nothing like the recommendations of the various sites I have turned up. In addition, the docs that came with the connector don't say a thing about a worker.properties file but other sources say it is required. In many cases I track down supposed documentation and find that it pertains to an earlier version of the JK connector. That includes documentation that came with Tomcat and stuff found on the web.

If anybody has gotten Tomcat 4 to work with IIS 6 I would love to hear from you on how you got it working.

Yours in frustration - Bill
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, I give up on JK2 - I dunno why the Tomcat folks package it with Tomcat 4, it is obviously not ready for prime time, at least on a Windows/IIS system.
Installing the previous ("JK") connector worked just fine with the following precautions:
The worker.properties file that comes with the connector download is NOT what you want, it seems to be full of Apache web server stuff.

I used this article as a guide. -Especially the bit about IIS 5.0 Isolation mode, and the "Web Service Extensions" setting.

Onward through the fog....
Bill
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We seem to be on the same track. I replied to an earlier post of yours today regarding another problem. I can get ajp 1.3 to work with IIS 5.1, but not 6.0. I am not able to access the link in your post. Can you again summarize the solution? I already know about running 6.0 in 5.1 isolation mode, but I haven't had time to try it out. Is there anything else that needs to be done?
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My memory on this is blank but here are my notes taken at the time:

------------------- I've had it with JK2, lets go back to JK
download isapi_rediredt_1.2.6.dll from
http://mirrors.xtria.com/apache/jakarta/tomcat-connectors/jk/binaries/
and the JK_1.2.6.Source_Release.zip from
http://jakarta.apache.org/site/sourceindex.cgi

------------ Aug 2
remove jk2 stuff and the dll
in server XML - comment out the Coyote/JK2 AJP 1.3 Connector on port 8009
and open the Define an AJP 1.3 Connector on port 8009 Element

install .dll as
d:\Tomcat41\bin\win32\i386\isapi_redirect.dll

follow Krouskop article and distribution docs for registry
1. modify the virtual directory jakarta to point to dir with .dll in it
2. new registry key 1.0 instead of 2.0
extension_uri /jakarta/isapi_redirect.dll
log_file d:\Tomcat41\logs\iis_redirect.log
log_level debug
worker_file d:\Tomcat41\conf\worker.properties
worker_mount_file d:\Tomcat41\conf\uriworkermap.properties


create worker.properties following tomcat book p 292 note "worker" not "workers"
to match registry
create uriworkermap.properties following book for examples
in server.xml create
<Listener className="org.apache.ajp.tomcat4.config.IISConfig" />
which is supposed to figure out stuff on startup.


Bill
 
Betsy Allen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bill for your help.
 
Let nothing stop you! Not even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic