tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <oh...@cox.net>
Subject Re: Do any of the Tomcat LDAP-type realms support "no password" authentication?
Date Fri, 02 Dec 2011 19:08:03 GMT

---- Christopher Schultz <chris@christopherschultz.net> wrote: 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Jim,
> 
> On 12/2/11 11:26 AM, ohaya@cox.net wrote:
> > Sure. Here's the section from httpd.conf. This is testing where I 
> > purposely insert a "REMOTE_USER" HTTP header into the request
> > being proxied. As I said, I have a sniffer on the line, and I can
> > see the REMOTE_USER header, but still, when I get to my test JSP
> > hosted on the Tomcat, getUserPrincipal() is returning null (don't
> > mind the hostname in the ProxyPass, etc. I just happen to be
> > hosting Tomcat on that machine, and WebLogic is shutdown there).
> 
> The problem is that AJP sends the authentication information as part
> of the AJP protocol, not as a request header. You are setting a
> request header which is not the mechanism AJP uses to transfer the userid.
> 
> You might want to check to see if your SSO module works the way that
> other httpd modules expect -- like the other mod_auth_[xyz], for instance.
> 
> See http://tomcat.apache.org/connectors-doc/reference/apache.html.
> Specifically, the JkRemoteUserIndicator directive which allows you to
> override the environment variable whose value will be used to
> send-over the username to Tomcat.
> 
> I wouldn't think you'd have to do that (REMOTE_USER should already be
> set by your auth module and mod_proxy_jk should already be using
> that), but you might be able to force it for some testing.
> 
> - -chris


Chris,

FYI, that link you posted give as 404 error.

To be clear, in the discussion before now, I was just using mod_ajp (built into/included with
Apache), and NOT mod_jk.  

I'm now in the process of trying to switch my Apache conf to use mod_jk.  The reason is that
I'm starting to get the feeling that the Apache 3rd party agent (it's Oracle's OAM webgate,
which I haven't said till now, sorry) might not be setting things in the Apache environment
that are needed for AJP.  I've been checking, and there's very little (= none) that I can
do with trying to change the OAM webgate behavior, and if it's not setting whatever Apache/AJP
needs, then I'm stuck, so I'm trying mod_jk, hoping that that'll give me some way to set what
AJP needs.

Now that I'm doing that, I'm starting to remember how confusing (to me at least) configuring
mod_jk is :) (vs. mod_ajp).

I just got the initial part of the re-configuration done.  I got the mod_jk.so (my test Apache
is on Windows, BTW), and added the LoadModule.  I have the Apache pointed to a new simple
workers.properties file, and the Apache comes up, but it doesn't seem to be proxing my test
URLs to the Tomcat anymore (/samplesajp/*).

Here's what I added to my Apache httpd.conf:


# 2011-12-02 - ADDING MOD_JK
LoadModule jk_module modules/mod_jk.so
JkWorkersFile c:/Apache2.2/conf/workers.properties
 # some other configuration
 JkLogFile "c:/Apache2.2/logs/jk.log"
 JkLogLevel debug
 JkShmFile c:/Apache2.2/logs/jk.shm
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 # forwarding URL prefixes to Tomcat instances
 JkMount /samplesajp/* tomcatA

 JkEnvVar REMOTE_USER


And, here's the workers.properties:


<IfModule mod_jk.c>
 # a list of Tomcat instances
 #JkWorkerProperty worker.list=tomcatA
 worker.list=tomcatA
 # connection properties to instance A on localhost
# JkWorkerProperty worker.tomcatA.type=ajp13
# JkWorkerProperty worker.tomcatA.host=weblogic1.whatever.com
# JkWorkerProperty worker.tomcatA.port=8009
worker.tomcatA.type=ajp13
worker.tomcatA.host=weblogic1.whatever.com
worker.tomcatA.port=8009

</IfModule>


And, here's what I'm seeing in jk.log when I try to access my test URL (via the Apache):


[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_set_time_fmt::jk_util.c (459): Pre-processed
log time stamp format is '[%a %b %d %H:%M:%S.000 %Y] '
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] uri_worker_map_open::jk_uri_worker_map.c
(770): rule map size is 1
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] uri_worker_map_add::jk_uri_worker_map.c
(720): wildchar rule '/samplesajp/*=tomcatA' source 'JkMount' was added
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(171): uri map dump after map open: index=0 file='(null)' reject_unsafe=0 reload=60 modified=0
checked=0
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 0: size=0 nosize=0 capacity=0
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 1: size=1 nosize=0 capacity=4
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(186): NEXT (1) map #0: uri=/samplesajp/* worker=tomcatA context=/samplesajp/* source=JkMount
type=Wildchar len=13
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_set_time_fmt::jk_util.c (459): Pre-processed
log time stamp format is '[%a %b %d %H:%M:%S.000 %Y] '
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] init_jk::mod_jk.c (3179): Not using locking.
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] init_jk::mod_jk.c (3191): Setting default
connection pool max size to 250
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.list' with value 'tomcatA' to map.
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.tomcatA.type' with value 'ajp13' to map.
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.tomcatA.host' with value 'weblogic1.whatever.com' to map.
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.tomcatA.port' with value '8009' to map.
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_map_resolve_references::jk_map.c (779):
Checking for references with prefix worker. with wildcard (recursion 1)
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_shm_calculate_size::jk_shm.c (132): shared
memory will contain 1 ajp workers of size 320 and 0 lb workers of size 320 with 0 members
of size 384+320
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_shm_open::jk_shm.c (254): Initialized
shared memory C:/Apache2.2/logs/jk.shm size=448 free=320 addr=0xb10000
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'ServerRoot' -> 'C:/Apache2.2'
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.list' -> 'tomcatA'
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.tomcatA.type' -> 'ajp13'
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.tomcatA.host' -> 'weblogic1.whatever.com'
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.tomcatA.port' -> '8009'
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] build_worker_map::jk_worker.c (242): creating
worker tomcatA
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] wc_create_worker::jk_worker.c (146): about
to create instance tomcatA of ajp13
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] wc_create_worker::jk_worker.c (159): about
to validate and init tomcatA
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_validate::jk_ajp_common.c (2672): worker
tomcatA contact is 'weblogic1.whatever.com:8009'
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2868): setting
endpoint options:
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2871): keepalive:
             0
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2875): socket
timeout:         0
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2879): socket
connect timeout: 0
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2883): buffer
size:            0
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2887): pool timeout:
          0
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2891): ping timeout:
          10000
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2895): connect
timeout:        0
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2899): reply
timeout:          0
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2903): prepost
timeout:        0
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2907): recovery
options:       0
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2911): retries:
               2
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2915): max packet
size:        8192
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2919): retry
interval:         100
[Fri Dec 02 14:04:26.468 2011] [444:1724] [debug] ajp_create_endpoint_cache::jk_ajp_common.c
(2729): setting connection pool size to 250 with min 125 and acquire timeout 200
[Fri Dec 02 14:04:26.478 2011] [444:1724] [info] init_jk::mod_jk.c (3252): mod_jk/1.2.32 ()
initialized
[Fri Dec 02 14:04:26.478 2011] [444:1724] [debug] wc_get_worker_for_name::jk_worker.c (116):
found a worker tomcatA
[Fri Dec 02 14:04:26.478 2011] [444:1724] [debug] wc_get_name_for_type::jk_worker.c (293):
Found worker type 'ajp13'
[Fri Dec 02 14:04:26.478 2011] [444:1724] [debug] uri_worker_map_ext::jk_uri_worker_map.c
(512): Checking extension for worker 0: tomcatA of type ajp13 (2)
[Fri Dec 02 14:04:26.478 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(171): uri map dump after extension stripping: index=0 file='(null)' reject_unsafe=0 reload=60
modified=0 checked=0
[Fri Dec 02 14:04:26.478 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 0: size=0 nosize=0 capacity=0
[Fri Dec 02 14:04:26.478 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 1: size=1 nosize=0 capacity=4
[Fri Dec 02 14:04:26.478 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(186): NEXT (1) map #0: uri=/samplesajp/* worker=tomcatA context=/samplesajp/* source=JkMount
type=Wildchar len=13
[Fri Dec 02 14:04:26.478 2011] [444:1724] [debug] uri_worker_map_switch::jk_uri_worker_map.c
(482): Switching uri worker map from index 0 to index 1
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_set_time_fmt::jk_util.c (459): Pre-processed
log time stamp format is '[%a %b %d %H:%M:%S.000 %Y] '
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] uri_worker_map_open::jk_uri_worker_map.c
(770): rule map size is 1
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] uri_worker_map_add::jk_uri_worker_map.c
(720): wildchar rule '/samplesajp/*=tomcatA' source 'JkMount' was added
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(171): uri map dump after map open: index=0 file='(null)' reject_unsafe=0 reload=60 modified=0
checked=0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 0: size=0 nosize=0 capacity=0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 1: size=1 nosize=0 capacity=4
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(186): NEXT (1) map #0: uri=/samplesajp/* worker=tomcatA context=/samplesajp/* source=JkMount
type=Wildchar len=13
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_set_time_fmt::jk_util.c (459): Pre-processed
log time stamp format is '[%a %b %d %H:%M:%S.000 %Y] '
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] init_jk::mod_jk.c (3179): Not using locking.
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] init_jk::mod_jk.c (3191): Setting default
connection pool max size to 250
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.list' with value 'tomcatA' to map.
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.tomcatA.type' with value 'ajp13' to map.
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.tomcatA.host' with value 'weblogic1.whatever.com' to map.
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.tomcatA.port' with value '8009' to map.
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_map_resolve_references::jk_map.c (779):
Checking for references with prefix worker. with wildcard (recursion 1)
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_shm_calculate_size::jk_shm.c (132): shared
memory will contain 1 ajp workers of size 320 and 0 lb workers of size 320 with 0 members
of size 384+320
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_shm_open::jk_shm.c (254): Initialized
shared memory C:/Apache2.2/logs/jk.shm size=448 free=320 addr=0x1870000
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'ServerRoot' -> 'C:/Apache2.2'
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.list' -> 'tomcatA'
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.tomcatA.type' -> 'ajp13'
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.tomcatA.host' -> 'weblogic1.whatever.com'
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.tomcatA.port' -> '8009'
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] build_worker_map::jk_worker.c (242): creating
worker tomcatA
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] wc_create_worker::jk_worker.c (146): about
to create instance tomcatA of ajp13
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] wc_create_worker::jk_worker.c (159): about
to validate and init tomcatA
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_validate::jk_ajp_common.c (2672): worker
tomcatA contact is 'weblogic1.whatever.com:8009'
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2868): setting
endpoint options:
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2871): keepalive:
             0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2875): socket
timeout:         0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2879): socket
connect timeout: 0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2883): buffer
size:            0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2887): pool timeout:
          0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2891): ping timeout:
          10000
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2895): connect
timeout:        0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2899): reply
timeout:          0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2903): prepost
timeout:        0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2907): recovery
options:       0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2911): retries:
               2
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2915): max packet
size:        8192
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_init::jk_ajp_common.c (2919): retry
interval:         100
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] ajp_create_endpoint_cache::jk_ajp_common.c
(2729): setting connection pool size to 250 with min 125 and acquire timeout 200
[Fri Dec 02 14:04:26.769 2011] [444:1724] [info] init_jk::mod_jk.c (3252): mod_jk/1.2.32 ()
initialized
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] wc_get_worker_for_name::jk_worker.c (116):
found a worker tomcatA
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] wc_get_name_for_type::jk_worker.c (293):
Found worker type 'ajp13'
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] uri_worker_map_ext::jk_uri_worker_map.c
(512): Checking extension for worker 0: tomcatA of type ajp13 (2)
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(171): uri map dump after extension stripping: index=0 file='(null)' reject_unsafe=0 reload=60
modified=0 checked=0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 0: size=0 nosize=0 capacity=0
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 1: size=1 nosize=0 capacity=4
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(186): NEXT (1) map #0: uri=/samplesajp/* worker=tomcatA context=/samplesajp/* source=JkMount
type=Wildchar len=13
[Fri Dec 02 14:04:26.769 2011] [444:1724] [debug] uri_worker_map_switch::jk_uri_worker_map.c
(482): Switching uri worker map from index 0 to index 1
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_set_time_fmt::jk_util.c (459): Pre-processed
log time stamp format is '[%a %b %d %H:%M:%S.000 %Y] '
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] uri_worker_map_open::jk_uri_worker_map.c
(770): rule map size is 1
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] uri_worker_map_add::jk_uri_worker_map.c (720):
wildchar rule '/samplesajp/*=tomcatA' source 'JkMount' was added
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(171): uri map dump after map open: index=0 file='(null)' reject_unsafe=0 reload=60 modified=0
checked=0
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 0: size=0 nosize=0 capacity=0
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 1: size=1 nosize=0 capacity=4
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(186): NEXT (1) map #0: uri=/samplesajp/* worker=tomcatA context=/samplesajp/* source=JkMount
type=Wildchar len=13
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_set_time_fmt::jk_util.c (459): Pre-processed
log time stamp format is '[%a %b %d %H:%M:%S.000 %Y] '
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] init_jk::mod_jk.c (3179): Not using locking.
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] init_jk::mod_jk.c (3191): Setting default
connection pool max size to 250
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.list' with value 'tomcatA' to map.
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.tomcatA.type' with value 'ajp13' to map.
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.tomcatA.host' with value 'weblogic1.whatever.com' to map.
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.tomcatA.port' with value '8009' to map.
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_map_resolve_references::jk_map.c (779):
Checking for references with prefix worker. with wildcard (recursion 1)
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_shm_calculate_size::jk_shm.c (132): shared
memory will contain 1 ajp workers of size 320 and 0 lb workers of size 320 with 0 members
of size 384+320
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_shm_open::jk_shm.c (244): Resetting the
shared memory for child 2
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_shm_open::jk_shm.c (254): Attached shared
memory C:/Apache2.2/logs/jk.shm size=448 free=320 addr=0xa50000
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'ServerRoot' -> 'C:/Apache2.2'
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.list' -> 'tomcatA'
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.tomcatA.type' -> 'ajp13'
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.tomcatA.host' -> 'weblogic1.whatever.com'
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.tomcatA.port' -> '8009'
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] build_worker_map::jk_worker.c (242): creating
worker tomcatA
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] wc_create_worker::jk_worker.c (146): about
to create instance tomcatA of ajp13
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] wc_create_worker::jk_worker.c (159): about
to validate and init tomcatA
[Fri Dec 02 14:04:26.979 2011] [744:732] [debug] ajp_validate::jk_ajp_common.c (2672): worker
tomcatA contact is 'weblogic1.whatever.com:8009'
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2868): setting
endpoint options:
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2871): keepalive:
             0
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2875): socket
timeout:         0
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2879): socket
connect timeout: 0
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2883): buffer
size:            0
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2887): pool timeout:
          0
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2891): ping timeout:
          10000
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2895): connect
timeout:        0
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2899): reply timeout:
         0
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2903): prepost
timeout:        0
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2907): recovery
options:       0
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2911): retries:
               2
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2915): max packet
size:        8192
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2919): retry interval:
        100
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] ajp_create_endpoint_cache::jk_ajp_common.c
(2729): setting connection pool size to 250 with min 125 and acquire timeout 200
[Fri Dec 02 14:04:26.989 2011] [744:732] [info] init_jk::mod_jk.c (3252): mod_jk/1.2.32 ()
initialized
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] wc_get_worker_for_name::jk_worker.c (116):
found a worker tomcatA
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] wc_get_name_for_type::jk_worker.c (293):
Found worker type 'ajp13'
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] uri_worker_map_ext::jk_uri_worker_map.c (512):
Checking extension for worker 0: tomcatA of type ajp13 (2)
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(171): uri map dump after extension stripping: index=0 file='(null)' reject_unsafe=0 reload=60
modified=0 checked=0
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 0: size=0 nosize=0 capacity=0
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 1: size=1 nosize=0 capacity=4
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(186): NEXT (1) map #0: uri=/samplesajp/* worker=tomcatA context=/samplesajp/* source=JkMount
type=Wildchar len=13
[Fri Dec 02 14:04:26.989 2011] [744:732] [debug] uri_worker_map_switch::jk_uri_worker_map.c
(482): Switching uri worker map from index 0 to index 1
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_set_time_fmt::jk_util.c (459): Pre-processed
log time stamp format is '[%a %b %d %H:%M:%S.000 %Y] '
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] uri_worker_map_open::jk_uri_worker_map.c
(770): rule map size is 1
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] uri_worker_map_add::jk_uri_worker_map.c (720):
wildchar rule '/samplesajp/*=tomcatA' source 'JkMount' was added
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(171): uri map dump after map open: index=0 file='(null)' reject_unsafe=0 reload=60 modified=0
checked=0
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 0: size=0 nosize=0 capacity=0
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 1: size=1 nosize=0 capacity=4
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(186): NEXT (1) map #0: uri=/samplesajp/* worker=tomcatA context=/samplesajp/* source=JkMount
type=Wildchar len=13
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_set_time_fmt::jk_util.c (459): Pre-processed
log time stamp format is '[%a %b %d %H:%M:%S.000 %Y] '
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] init_jk::mod_jk.c (3179): Not using locking.
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] init_jk::mod_jk.c (3191): Setting default
connection pool max size to 250
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.list' with value 'tomcatA' to map.
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.tomcatA.type' with value 'ajp13' to map.
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.tomcatA.host' with value 'weblogic1.whatever.com' to map.
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_map_read_property::jk_map.c (491): Adding
property 'worker.tomcatA.port' with value '8009' to map.
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_map_resolve_references::jk_map.c (779):
Checking for references with prefix worker. with wildcard (recursion 1)
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_shm_calculate_size::jk_shm.c (132): shared
memory will contain 1 ajp workers of size 320 and 0 lb workers of size 320 with 0 members
of size 384+320
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_shm_open::jk_shm.c (244): Resetting the
shared memory for child 2
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_shm_open::jk_shm.c (254): Attached shared
memory C:/Apache2.2/logs/jk.shm size=448 free=320 addr=0x17b0000
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'ServerRoot' -> 'C:/Apache2.2'
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.list' -> 'tomcatA'
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.tomcatA.type' -> 'ajp13'
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.tomcatA.host' -> 'weblogic1.whatever.com'
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] jk_map_dump::jk_map.c (589): Dump of map:
'worker.tomcatA.port' -> '8009'
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] build_worker_map::jk_worker.c (242): creating
worker tomcatA
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] wc_create_worker::jk_worker.c (146): about
to create instance tomcatA of ajp13
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] wc_create_worker::jk_worker.c (159): about
to validate and init tomcatA
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_validate::jk_ajp_common.c (2672): worker
tomcatA contact is 'weblogic1.whatever.com:8009'
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2868): setting
endpoint options:
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2871): keepalive:
             0
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2875): socket
timeout:         0
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2879): socket
connect timeout: 0
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2883): buffer
size:            0
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2887): pool timeout:
          0
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2891): ping timeout:
          10000
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2895): connect
timeout:        0
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2899): reply timeout:
         0
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2903): prepost
timeout:        0
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2907): recovery
options:       0
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2911): retries:
               2
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2915): max packet
size:        8192
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_init::jk_ajp_common.c (2919): retry interval:
        100
[Fri Dec 02 14:04:27.139 2011] [744:732] [debug] ajp_create_endpoint_cache::jk_ajp_common.c
(2729): setting connection pool size to 250 with min 125 and acquire timeout 200
[Fri Dec 02 14:04:27.149 2011] [744:732] [info] init_jk::mod_jk.c (3252): mod_jk/1.2.32 ()
initialized
[Fri Dec 02 14:04:27.149 2011] [744:732] [debug] wc_get_worker_for_name::jk_worker.c (116):
found a worker tomcatA
[Fri Dec 02 14:04:27.149 2011] [744:732] [debug] wc_get_name_for_type::jk_worker.c (293):
Found worker type 'ajp13'
[Fri Dec 02 14:04:27.149 2011] [744:732] [debug] uri_worker_map_ext::jk_uri_worker_map.c (512):
Checking extension for worker 0: tomcatA of type ajp13 (2)
[Fri Dec 02 14:04:27.149 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(171): uri map dump after extension stripping: index=0 file='(null)' reject_unsafe=0 reload=60
modified=0 checked=0
[Fri Dec 02 14:04:27.149 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 0: size=0 nosize=0 capacity=0
[Fri Dec 02 14:04:27.149 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(176): generation 1: size=1 nosize=0 capacity=4
[Fri Dec 02 14:04:27.149 2011] [744:732] [debug] uri_worker_map_dump::jk_uri_worker_map.c
(186): NEXT (1) map #0: uri=/samplesajp/* worker=tomcatA context=/samplesajp/* source=JkMount
type=Wildchar len=13
[Fri Dec 02 14:04:27.149 2011] [744:732] [debug] uri_worker_map_switch::jk_uri_worker_map.c
(482): Switching uri worker map from index 0 to index 1
[Fri Dec 02 14:04:27.149 2011] [744:732] [debug] jk_shm_open::jk_shm.c (158): Shared memory
is already opened
[Fri Dec 02 14:04:27.149 2011] [744:732] [debug] jk_child_init::mod_jk.c (3136): Initialized
mod_jk/1.2.32 ()
[Fri Dec 02 14:04:50.022 2011] [744:560] [debug] jk_translate::mod_jk.c (3488): missing uri
map for apache1.whatever.com:/samplesajp/ssoAMTomcatTest.jsp
[Fri Dec 02 14:04:50.022 2011] [744:560] [debug] jk_map_to_storage::mod_jk.c (3647): missing
uri map for apache1.whatever.com:/samplesajp/ssoAMTomcatTest.jsp
[Fri Dec 02 14:05:10.121 2011] [744:560] [debug] jk_translate::mod_jk.c (3488): missing uri
map for apache1.whatever.com:/oam/server/obrareq.cgi
[Fri Dec 02 14:05:10.121 2011] [744:560] [debug] jk_map_to_storage::mod_jk.c (3647): missing
uri map for apache1.whatever.com:/oam/server/obrareq.cgi
[Fri Dec 02 14:05:10.211 2011] [744:560] [debug] jk_translate::mod_jk.c (3488): missing uri
map for apache1.whatever.com:/oam/CredCollectServlet/X509
[Fri Dec 02 14:05:10.211 2011] [744:560] [debug] jk_map_to_storage::mod_jk.c (3647): missing
uri map for apache1.whatever.com:/oam/CredCollectServlet/X509
[Fri Dec 02 14:05:10.291 2011] [744:560] [debug] jk_translate::mod_jk.c (3488): missing uri
map for apache1.whatever.com:/obrar.cgi
[Fri Dec 02 14:05:10.291 2011] [744:560] [debug] jk_map_to_storage::mod_jk.c (3647): missing
uri map for apache1.whatever.com:/obrar.cgi
[Fri Dec 02 14:05:10.361 2011] [744:560] [debug] jk_translate::mod_jk.c (3488): missing uri
map for apache1.whatever.com:/samplesajp/ssoAMTomcatTest.jsp
[Fri Dec 02 14:05:10.361 2011] [744:560] [debug] jk_map_to_storage::mod_jk.c (3647): missing
uri map for apache1.whatever.com:/samplesajp/ssoAMTomcatTest.jsp


Shouldn't the one "JkMount /samplesajp/*" that I have be enough to proxy through the mod_jk?

Also, why is it appearing to try to process the "/oam/..." URIs?

Sorry again for the longish post :(...

Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message