Rick,
I have the following environment working...
Tomcat v4.0.6
IIS 5.0
JK2 isapi_redirector2.dll v. 2.0.1
in a distributed environment with Tomcat and IIS on separate machines.
Notes:
1. Don't use v2.0.2 of the isapi_redirector2.dll. For some reason, it doesn't work. I haven't had time to figure out why, but other people are reporting the same thing. I tried to get it working, but had no success. v2.0.1 worked for me right away.
2. I've found that the "shm.init()" warning is really a red herring of sorts. My configuration worked even if the warning was logged during startup. In order to prevent the warning, make sure that there is a shm file listed in the workers2.properties file. The connector will create the file if it is missing.
3. Attached are my workers2.properties file, my jk2.properties file and my registry settings. The workers2.properties file and registry settings apply to the IIS server. The jk2.properties file (which has everything commented out) applies to the Tomcat Server.
With this configuration we are having no problems with POST or GET requests.
Steve
The information transmitted in this communication is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please destroy any copies, contact the sender and delete the material from any computer.
-----Original Message-----
From: Rick Bullotta [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 03, 2003 1:20 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: IIS, JK, Tomcat POST always fails, JK2 never works at
all...
Here's more info on the Tomcat/redirector bug we're trying to track
down. Also, you suggested trying JK2. When attempting JK2 with IIS and
Tomcat 4.1, a "shm.init() : no file" error is always generated in the
Windows Event Log. It never seems to initialize properly. If ANYONE
has a working configuration of JK2/IIS/Tomcat 4.X (with or without JNI),
I'd love to get a copy of your jk2.properties, workers2.properties, and
windows registry entries that work...
Many thanks!
- Rick
stdout.log content:
=====================12 34 01 2a 02 04 00 08 48 54 54 50 2f 31 2e 31 |
.4.*....HTTP/1.1 00 00 14 2f 73 65 72 76 6c 65 74 2f 49 6c 6c 75 |
.../servlet/Illu 6d 69 6e 61 74 6f 72 00 00 09 31 32 37 2e 30 2e |
minator...127.0. 30 2e 31 00 00 09 31 32 37 2e 30 2e 30 2e 31 00 |
0.1...127.0.0.1. 00 09 6c 6f 63 61 6c 68 6f 73 74 00 00 50 00 00 |
..localhost..P.. 08 a0 01 00 34 74 65 78 74 2f 68 74 6d 6c 2c 20 |
.?..4text/html,
69 6d 61 67 65 2f 67 69 66 2c 20 69 6d 61 67 65 | image/gif, image 2f
6a 70 65 67 2c 20 2a 3b 20 71 3d 2e 32 2c 20 | /jpeg, *; q=.2,
2a 2f 2a 3b 20 71 3d 2e 32 00 a0 04 00 02 65 6e | */*; q=.2.?...en 00
a0 06 00 0a 4b 65 65 70 2d 41 6c 69 76 65 00 | .?...Keep-Alive. a0 0b
00 09 6c 6f 63 61 6c 68 6f 73 74 00 a0 0e | ?...localhost.?. 00 29 4d
6f 7a 69 6c 6c 61 2f 34 2e 30 20 28 63 | .)Mozilla/4.0 (c 6f 6d 70 61
74 69 62 6c 65 3b 20 4d 53 49 45 20 | ompatible; MSIE
36 2e 30 3b 20 57 69 6e 33 32 29 00 a0 08 00 03 | 6.0; Win32).?... 31
30 32 00 a0 07 00 21 61 70 70 6c 69 63 61 74 | 102.?..!applicat 69 6f
6e 2f 78 2d 77 77 77 2d 66 6f 72 6d 2d 75 | ion/x-www-form-u 72 6c 65
6e 63 6f 64 65 64 00 00 0d 63 61 63 68 | rlencoded...cach 65 2d 63 6f
6e 74 72 6f 6c 00 00 08 6e 6f 2d 63 | e-control...no-c
61 63 68 65 00 03 00 00 00 04 00 00 00 ff | ache.........?
=====================
Iis_redirect.log content:
=====================
[Sun Mar 02 22:29:10 2003] [jk_isapi_plugin.c (696)]: HttpFilterProc
started [Sun Mar 02 22:29:10 2003] [jk_isapi_plugin.c (759)]: In
HttpFilterProc Virtual Host redirection of
/localhost/servlet/Illuminator [Sun Mar 02 22:29:10 2003]
[jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Sun Mar 02 22:29:10 2003] [jk_uri_worker_map.c (477)]: Attempting to
map URI '/localhost/servlet/Illuminator' [Sun Mar 02 22:29:10 2003]
[jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker,
done without a match [Sun Mar 02 22:29:10 2003] [jk_isapi_plugin.c
(765)]: In HttpFilterProc test Default redirection of
/servlet/Illuminator [Sun Mar 02 22:29:10 2003] [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Sun Mar 02 22:29:10 2003] [jk_uri_worker_map.c (477)]: Attempting to
map URI '/servlet/Illuminator' [Sun Mar 02 22:29:10 2003]
[jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker,
Found a context match ajp13 -> /servlet/ [Sun Mar 02 22:29:10 2003]
[jk_isapi_plugin.c (775)]: HttpFilterProc [/servlet/Illuminator] is a
servlet url - should redirect to ajp13 [Sun Mar 02 22:29:10 2003]
[jk_isapi_plugin.c (838)]: HttpFilterProc check if
[/servlet/Illuminator] is points to the web-inf directory [Sun Mar 02
22:29:10 2003] [jk_isapi_plugin.c (878)]: HttpExtensionProc started
[Sun Mar 02 22:29:10 2003] [jk_worker.c (132)]: Into
wc_get_worker_for_name ajp13 [Sun Mar 02 22:29:10 2003] [jk_worker.c
(136)]: wc_get_worker_for_name, done found a worker [Sun Mar 02
22:29:10 2003] [jk_isapi_plugin.c (913)]: HttpExtensionProc got a
worker for name ajp13 [Sun Mar 02 22:29:10 2003] [jk_ajp_common.c
(1391)]: Into jk_worker_t::get_endpoint [Sun Mar 02 22:29:10 2003]
[jk_ajp_common.c (1435)]: In jk_endpoint_t::ajp_get_endpoint, time
elapsed since last request = 27 seconds [Sun Mar 02 22:29:10 2003]
[jk_ajp_common.c (1107)]: Into jk_endpoint_t::service [Sun Mar 02
22:29:10 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Sun
Mar 02 22:29:10 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done [Sun Mar 02 22:29:10 2003] [jk_ajp_common.c (640)]: sending to
ajp13 #530 [Sun Mar 02 22:29:10 2003] [jk_ajp_common.c (882)]:
ajp_send_request 2: request body to send 59 - request body to resend 0
[Sun Mar 02 22:29:10 2003] [jk_isapi_plugin.c (514)]: Into
jk_ws_service_t::read
=====================
With Tomcat 4.1.18 and the latest JK IIS redirector (on
> > Windows XP Pro), HTTP POST requests to a servlet fail with
> > what appears to be a socket timeout error. HTTP GET's work
> > perfectly. The identical code runs perfectly (POST or GET)
> > when using Apache 2.0.43 with JK.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
��W i n d o w s R e g i s t r y E d i t o r V e r s i o n 5 . 0 0 [ H K E Y _ L O C A L _ M A C H I N E \ S O F T W A R E \ A p a c h e S o f t w a r e F o u n d a t i o n ] [ H K E Y _ L O C A L _ M A C H I N E \ S O F T W A R E \ A p a c h e S o f t w a r e F o u n d a t i o n \ J a k a r t a I s a p i R e d i r e c t o r ] [ H K E Y _ L O C A L _ M A C H I N E \ S O F T W A R E \ A p a c h e S o f t w a r e F o u n d a t i o n \ J a k a r t a I s a p i R e d i r e c t o r \ 2 . 0 ] "