Jay Rutten wrote:
Here are the init log messages. Nothing stands out as wrong. Could this
be a configuration setting/error with IIS 6 running on Windows Server
2003?

No precise idea here. At least one of the following returns false:

    AddHeader(pfc, URI_HEADER_NAME, forwardURI)

    AddHeader(pfc, WORKER_HEADER_NAME, (LPSTR)worker)

    SetHeader(pfc, "url", extension_uri))

or

    AddHeader(pfc, QUERY_HEADER_NAME, squery)

if strlen(squery) > 0.

Since all *_HEADER_NAME should be private to the isapi plugin, I guess the problem lies within

    SetHeader(pfc, "url", extension_uri))

The value for extension_uri in your case is "/jakarta/isapi_redirect.dll", which is the default. Of course you have to tell IIS, that this is the virtual directory for the plugin (see installation docs).

Regards,

Rainer

[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_util.c (430):
Pre-processed log time stamp format is '[%a %b %d %H:%M:%S.000 %Y] '
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_shm.c (169):
Initialized shared memory size=28800 free=28672 addr=0x1e60000
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_isapi_plugin.c
(1688): Using registry.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_isapi_plugin.c
(1691): Using log file D:\Inetpub\LoadBalancer\Log\isapi.log.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_isapi_plugin.c
(1692): Using log level 1.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_isapi_plugin.c
(1693): Using extension uri  /jakarta/isapi_redirect.dll.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_isapi_plugin.c
(1694): Using worker file D:\Inetpub\LoadBalancer\workers.properties.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_isapi_plugin.c
(1695): Using worker mount file
D:\Inetpub\LoadBalancer\uriworkermap.properties.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_isapi_plugin.c
(1697): Using rewrite rule file .
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_isapi_plugin.c
(1699): Using uri select 3.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (492): Adding
property '/inquiragw/*' with value 'runtime1' to map.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (492): Adding
property '/jkmanager' with value 'jkstatus' to map.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_uri_worker_map.c
(722): Loading urimaps from
D:\Inetpub\LoadBalancer\uriworkermap.properties with reload check
interval 60 seconds
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_uri_worker_map.c
(379): wildchar rule '/inquiragw/*=runtime1' source 'uriworkermap' was
added
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_uri_worker_map.c
(387): exact rule '/jkmanager=jkstatus' source 'uriworkermap' was added
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (492): Adding
property 'worker.list' with value 'runtime1,jkstatus' to map.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (492): Adding
property 'worker.runtimebasic.type' with value 'ajp13' to map.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (492): Adding
property 'worker.runtimebasic.host' with value 'ord-iqrtdev' to map.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (492): Adding
property 'worker.runtimebasic.lbfactor' with value '1' to map.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (492): Adding
property 'worker.runtime1.port' with value '8319' to map.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (492): Adding
property 'worker.runtime1.reference' with value 'worker.runtimebasic' to
map.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (492): Adding
property 'worker.jkstatus.type' with value 'status' to map.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (770):
Checking for references with prefix worker. with wildcard (recursion 1)
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (770):
Checking for references with prefix worker.runtimebasic without wildcard
(recursion 2)
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (805):
Copying values from worker.runtimebasic. to worker.runtime1.
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (590): Dump
of map: 'worker.list' -> 'runtime1,jkstatus'
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (590): Dump
of map: 'worker.runtimebasic.type' -> 'ajp13'
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (590): Dump
of map: 'worker.runtimebasic.host' -> 'ord-iqrtdev'
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (590): Dump
of map: 'worker.runtimebasic.lbfactor' -> '1'
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (590): Dump
of map: 'worker.runtime1.port' -> '8319'
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (590): Dump
of map: 'worker.runtime1.reference' -> ''
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (590): Dump
of map: 'worker.jkstatus.type' -> 'status'
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (590): Dump
of map: 'worker.runtime1.type' -> 'ajp13'
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (590): Dump
of map: 'worker.runtime1.host' -> 'ord-iqrtdev'
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_map.c (590): Dump
of map: 'worker.runtime1.lbfactor' -> '1'
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_worker.c (241):
creating worker runtime1
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_worker.c (145):
about to create instance runtime1 of ajp13
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_worker.c (158):
about to validate and init runtime1
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2249): worker runtime1 contact is 'ord-iqrtdev:8319'
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2380): setting endpoint options:
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2383): keepalive:        0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2387): timeout:          0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2391): buffer size:      0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2395): pool timeout:     0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2399): connect timeout:  0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2403): reply timeout:    0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2407): prepost timeout:  0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2411): recovery options: 0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2415): retries:          2
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2419): max packet size:  8192
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2288): setting connection pool size to 250 with min 125


-----Original Message-----
From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2008 8:53 AM
To: Tomcat Users List
Subject: Re: jk_isapi_plugin.c (1374): error while adding request
headers

Jay Rutten wrote:
Logging level is at debug. It appears from the log that everything is
ok, but I then I get the header error below. Here are several lines
above the error:

The log snippet doesn't contain the init of the worker runtime1, but I assume, you checked that.

...
[Mon Mar 24 21:11:31.013 2008] [920:1608] [info] jk_isapi_plugin.c
(1783): isapi_redirect/1.2.26 initialized
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_isapi_plugin.c
(1199): Filter started
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
(682): Attempting to map URI '/localhost/inquiragw/ui.jsp' from 2 maps
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
(503): Attempting to map context URI '/inquiragw/*=runtime1' source
'uriworkermap'
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
(503): Attempting to map context URI '/jkmanager=jkstatus' source
'uriworkermap'
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
(503): Attempting to map context URI '/inquiragw/*=runtime1' source
'uriworkermap'
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
(516): Found a wildchar match '/inquiragw/*=runtime1'
...
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_isapi_plugin.c
(1336): fowarding escaped URI [/inquiragw/ui.jsp]
[Mon Mar 24 21:11:31.013 2008] [920:1608] [error] jk_isapi_plugin.c
(1374): error while adding request headers

This happens for all URLs, including /jkmanager (i.e. jkstatus
worker).
-----Original Message-----
From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2008 1:53 AM
To: Tomcat Users List
Subject: Re: jk_isapi_plugin.c (1374): error while adding request
headers

Mark Thomas wrote:
Jay Rutten wrote:
The result is either a 500 or a single line on the page:
The parameter is incorrect.

(I would love to know what parameter it is referring to!)

From the line of code specified in the message, it is clear the
AddHeader or SetHeader is failing and the request is not even
getting
to
Tomcat.  Any ideas why the 2 methods would be failing or how I could
hunt this down? Unfortunately, I do not have access to MSVC so I
cannot
rebuild the dll.

Any help would be greatly appreciated!
Turn up the logging level. debug should tell you what you want to
know.
You'll need to edit the registry. See http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html
In addition to Mark's recommendation: is this happening for every URL?

Does it also happen for jkstatus?

And what did you set in the registry resp. in the isapi properties file?

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to