Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat 4 and IIS not redirecting...Please help

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hello. i am a newbie and having trouble with Tomcat and IIS. Everything seems to be set up fine to me. The isapi_redirect.dll shows a green arrow in IIS. I have scrutinized the registery and everything looks fine. I have set the worker.properties and uriworkers.properties files, the ajp context is active in server.xml. The jakarta virtual directory is set fine and has the necessary permissions. I have read all docs for hours to no avail.

I can see the examples when i go to but not on
serves my default.htm page fine.

Here are my files:

uriworkers.properties

# *********** Begin uriworkermap.properties ***
#
# Simple worker configuration file
#

# Mount the Servlet context to the ajp13 worker
/servlet/*=ajp13

# Mount the examples context to the ajp13 worker
/examples/*=ajp13

# Advanced mount of the examples context
/examples/servlet/*=ajp13
/examples/jsp/*=ajp13
# ************* End uriworkermap.properties ****



worker.properties


# ************ Begin worker.properties **************
worker.ajp13.type=ajp13

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize

#
#------ DEFAULT LOAD BALANCER WORKER DEFINITION ----------------------
#---------------------------------------------------------------------
#

#
# The loadbalancer (type lb) worker perform weighted round-robin
# load balancing with sticky sessions.
# Note:
# ----> If a worker dies, the load balancer will check its state
# once in a while. Until then all work is redirected to peer
# worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13

#
# worker.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
worker.tomcat_home=C:\jakarta-tomcat-4.0.4

#
# worker.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
worker.java_home=C:\j2sdk1.4.0_01

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=
#
#------ ADVANCED MODE ------------------------------------------------
#---------------------------------------------------------------------
#

#
#------ DEFAULT worker list ------------------------------------------
#---------------------------------------------------------------------
#
# The worker that your plugins should create and work with
worker.list=ajp13

#
#------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=localhost

# ************ End worker.properties **************

Server.xml
...

<!-- Define an AJP 1.3 Connector on port 8009 -->
<!-- connectionTimeout should be set to ZERO -->
<Connector className=&quot;org.apache.ajp.tomcat4.Ajp13Connector&quot;
port=&quot;8009&quot; minProcessors=&quot;5&quot; maxProcessors=&quot;75&quot;
acceptCount=&quot;10&quot; debug=&quot;0&quot; connectionTimeout=&quot;0&quot; />
...


iis_redirect.reg Registery file:

Windows Registry Editor Version 5.00

REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0]
&quot;extension_uri&quot;=&quot;/jakarta/isapi_redirect.dll&quot;
&quot;log_file&quot;=&quot;C:\\jakarta-tomcat-4.0.4\\logs\\iis_redirect.log&quot;
&quot;log_level&quot;=&quot;emerg&quot;
&quot;worker_file&quot;=&quot;C:\\jakarta-tomcat-4.0.4\\conf\\worker.properties&quot;
&quot;worker_mount_file&quot;=&quot;C:\\jakarta-tomcat-4.0.4\\conf\\uriworkermap.properties&quot;

I am stuck. Could someone please help? Thank you. Sam
 
Hello Z B,

I'm stuck at exactly the same point as you - but did you try replacing the double-slashes from the Registry keys you created (towards the end of your message)? They may just be single slashes.

JS.
 
Hey SevenHvn. Thanks for you reply.

No, i haven't attempted to remove the slashes in the registry yet. I think that the registry sytax requires them, but i'll give it a try just in case.

I have posted the same issue on JGURU and have been talking with another Tomcat user who had the same issue. Perhaps his solution will benefit you. He had to change some syntax in the extension_uri of the tomcat registry entry. If not hopefully we can put our heads together and find a solution.

you can view my post on JGURU here:
I hope it's helpful.
Regards,
Z Bull (sam)
 
i don't have it in front of me, but somewhere in the Tomcat docs about IIS redirect there is a serious typo: 'worker.properties' is shown where it should be 'workers.properties' (or vice versa).

when i found that and fixed it, everything worked.
 
ZBULL,

What flavor of Tomcat are you using?

I am using Tomcat 4.1.18.

The reason I ask is because in the doc that I have it calls for the use of workers2.properties and isapi_redirector2.dll but I don't see any mention of either of these two files in your post.

I am also having the same results as yourself though. Getting a HTTP500 page not found message.

The doc I have been following is located at:

Have you had any luck?

Sincerely,
Tim
 
tmf,
I am currently using 4.0.4 so i am not sure about workers2.properties and isapi_redirector2.dll. I assume these are the new versions for 4.1.x. I plan on upgrading soon though so i may have to revisit this post again since i'm sure it won't be smooth sailing.

I continually had trouble getting it to redirect properly and then day it just decided to work and i really don't think i did anything. Tomcat scares me sometimes. But it is currently redirecting and getting hit with decent traffic and handling it all well.

I wish i had better info for you. Keep us updated!

zbull
 
I have got it working with Jakarta-tomcat-4.1.18 and the redirector isapi_redirector.dll which I got at :-
and then renamed as isapi_redirect.dll.
(I originally tried with jk2 and isapi_redirector2.dll but could not get it to work)

The only two differences that I can see between what you did and what I did are:-

1) My workers.properties file starts with defining the list whereas yours ends with it. See below.

2) My workers.properties has an s after worker. Yours is worker.properties. I wouldnt't thing that this makes any difference but you never know.

Here is my workers.properties:-

#****************Begin workers.properties***************
#
# Define 1 real worker using ajp13
worker.list=worker1

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300


Jim
 
I am having sort of the same problem under IIS 5.1 on XP Pro. What version of IIS are you guys running. I also get this message &quot;The request is not supported.&quot;


Tomcat 4.0.6
IIS 5.1
isapi_redirector
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top