Thanks for everyone's help on this one!! <- HEAVY SARCASM ->

Actually, for future reference, I replaced my TC 4.0.3 tomcat-ajp.jar with a
4.0.4 version.

It solved my problem.
Thanks again!
Aaron.

-----Original Message-----
From: Rustad, Aaron 
Sent: Monday, September 23, 2002 11:33 AM
To: '[EMAIL PROTECTED]'
Subject: IIS, Tomcat 4.0.3 on 2 different servers...



I would like to have IIS (running on server 1) forward JSP requests to
Tomcat (running on server 2).

I have set it up using the redirector, and I have successfully been able to
view JSPs as expected.

One problem I am encountering is that when I enter a protected directory (as
defined by web.xml), I get the standard error: 
 Apache Tomcat/4.0.3 - HTTP Status 403 - Access to the requested resource
has been denied

I have traced the log files but can not find a solution, nor can I find a
answer in the archives or howtos.

I really need another pair of eyes to look at this for me.
If anyone can help, I would greatly appreciate it (please see below for
config files and logs).

Thanks!
Aaron.



Web.xml
-------
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>loginForm</web-resource-name>
      <url-pattern>/protected/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
      <role-name>REPUSER</role-name>
      <role-name>USERADMIN</role-name>
      <role-name>EXTUSER</role-name>
      <role-name>SYSTEMADMIN</role-name>
      <role-name>TMSUSER</role-name>
    </auth-constraint>
    <user-data-constraint>
      <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
  </security-constraint>


iis_rediect.reg
===============
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
"extension_uri"="/wins/isapi_redirect.dll"
"log_file"="C:\\wins\\logs\\iis_redirect.log"
"log_level"="debug"
"worker_file"="C:\\wins\\conf\\workers.properties"
"worker_mount_file"="C:\\wins\\conf\\uriworkermap.properties"

uriworkermap.properties
=======================
#
# Default worker to be used through our mappings
#
default.worker=ajp13

#
# Sites to be redirected to Tomcat
#
/connect=$(default.worker)
/connect/*=$(default.worker


Workers.properties
==================

# workers.properties -
#
# This file provides IIS filter with the needed information to
# connect to the different tomcat workers.


#------ ENVIRONMENT Settings -----------------------------------------
#---------------------------------------------------------------------
#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=D:\Projects\bcgas\sdk\JBoss-2.4.6_Tomcat-4.0.3\catalina

#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=D:\Projects\bcgas\sdk\j2sdk1.4.0

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


#
#------ DEFAULT worket list ------------------------------------------
#---------------------------------------------------------------------
#
#
# The workers 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=cgybcgas
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) workers perform wighted 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
#        workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers= ajp13



IIS_Redirect.log
================
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (965)]: Using registry.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (967)]: Using log file
C:\wins\logs\iis_redirect.log.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (968)]: Using log level 0.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (969)]: Using extension uri
/wins/isapi_redirect.dll.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (970)]: Using worker file
C:\wins\conf\workers.properties.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (971)]: Using worker mount
file C:\wins\conf\uriworkermap.properties.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (972)]: Using uri select 0.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (988)]: Ignoring worker mount
file entry default.worker=ajp13.
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (170)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (362)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (383)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 4
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (332)]: Into
jk_uri_worker_map_t::uri_worker_map_open, exact rule /connect=ajp13 was
added
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (308)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /connect/=ajp13 was
added
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (308)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule
/connect/protected/=ajp13 was added
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (308)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule
/connect/security/=ajp13 was added
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (395)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 4 rules
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (409)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Mon Sep 23 11:10:59 2002]  [jk_worker.c (88)]: Into wc_open
[Mon Sep 23 11:10:59 2002]  [jk_worker.c (222)]: Into build_worker_map,
creating 1 workers
[Mon Sep 23 11:10:59 2002]  [jk_worker.c (228)]: build_worker_map, creating
worker ajp13
[Mon Sep 23 11:10:59 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Mon Sep 23 11:10:59 2002]  [jk_worker.c (162)]: wc_create_worker, about to
create instance ajp13 of ajp13
[Mon Sep 23 11:10:59 2002]  [jk_ajp13_worker.c (108)]: Into
ajp13_worker_factory
[Mon Sep 23 11:10:59 2002]  [jk_worker.c (171)]: wc_create_worker, about to
validate and init ajp13
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (1174)]: Into
jk_worker_t::validate
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (1194)]: In
jk_worker_t::validate for worker ajp13 contact is cgybcgas:8009
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (1222)]: Into jk_worker_t::init
[Mon Sep 23 11:10:59 2002]  [jk_worker.c (187)]: wc_create_worker, done
[Mon Sep 23 11:10:59 2002]  [jk_worker.c (238)]: build_worker_map, removing
old ajp13 worker 
[Mon Sep 23 11:10:59 2002]  [jk_worker.c (250)]: build_worker_map, done
[Mon Sep 23 11:10:59 2002]  [jk_worker.c (111)]: wc_open, done 1
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (657)]: HttpFilterProc
started
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (705)]: In HttpFilterProc
Virtual Host redirection of /cgyotws/connect/protected
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (447)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (464)]: Attempting to map
URI '/cgyotws/connect/protected'
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (570)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (711)]: In HttpFilterProc
test Default redirection of /connect/protected
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (447)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (464)]: Attempting to map
URI '/connect/protected'
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (489)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 ->
/connect/
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (721)]: HttpFilterProc
[/connect/protected] is a servlet url - should redirect to ajp13
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (784)]: HttpFilterProc check
if [/connect/protected] is points to the web-inf directory
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (824)]: HttpExtensionProc
started
[Mon Sep 23 11:10:59 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Mon Sep 23 11:10:59 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (860)]: HttpExtensionProc got
a worker for name ajp13
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (1352)]: Into
jk_worker_t::get_endpoint
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (1075)]: Into
jk_endpoint_t::service
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (280)]: Into
ajp_marshal_into_msgb
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (413)]: ajp_marshal_into_msgb -
Done
[Mon Sep 23 11:10:59 2002]  [jk_connect.c (116)]: Into jk_open_socket
[Mon Sep 23 11:10:59 2002]  [jk_connect.c (123)]: jk_open_socket, try to
connect socket = 1748
[Mon Sep 23 11:10:59 2002]  [jk_connect.c (132)]: jk_open_socket, after
connect ret = 0
[Mon Sep 23 11:10:59 2002]  [jk_connect.c (140)]: jk_open_socket, set
TCP_NODELAY to on
[Mon Sep 23 11:10:59 2002]  [jk_connect.c (148)]: jk_open_socket, return, sd
= 1748
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (588)]: In
jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 1748
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (612)]: sending to ajp13 #372
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (853)]: ajp_send_request 2:
request body to send 0 - request body to resend 0
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (698)]: received from ajp13
#106
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (461)]: ajp_unmarshal_response:
status = 403
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (466)]: ajp_unmarshal_response:
Number of headers is = 3
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (506)]: ajp_unmarshal_response:
Header[0] [Pragma] = [No-cache]
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (506)]: ajp_unmarshal_response:
Header[1] [Expires] = [Thu, 01 Jan 1970 00:00:00 GMT]
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (506)]: ajp_unmarshal_response:
Header[2] [Cache-Control] = [no-cache]
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (428)]: Into
jk_ws_service_t::start_response
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (698)]: received from ajp13
#733
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (562)]: Into
jk_ws_service_t::write
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (698)]: received from ajp13 #2
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (872)]: HttpExtensionProc
service() returned OK
[Mon Sep 23 11:10:59 2002]  [jk_ajp_common.c (1307)]: Into
jk_endpoint_t::done

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to