i set up IIS 5.0 to jakarta-tomcat-4.1.30 with jk 1.2.6 and it doesn't
seem to handle POSTS. GETs are working fine. we can't use JK2 we encountered
another problem with that so we figured we try this newest release of 1.2

I'm using the SessionManage example that ships with Tomcat as a testcase.
http://localhost/examples/servlet/SessionExample  

Example works fine if I bypass IIS.

I'm not an expert at JK but i've configured it at least 10 times so I'm
fairly confident that the configuration is setup correctly (configurations
are at the bottom)  Filter is green arrow, logs are working, gets are
working, etc.

Thanks in advance.

** Here's system out with startup msgs and the stack trace

Aug 28, 2004 12:30:49 AM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service 
Tomcat-Standalone Apache Tomcat/4.1.30 Aug 28, 2004 12:30:52 AM 
org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, 
config='org.apache.struts.util.LocalStrings', returnNull=tru e Aug 28, 
2004 12:30:52 AM org.apache.struts.util.PropertyMessageResources <init> 
INFO: Initializing, config='org.apache.struts.action.ActionResources', 
returnNul l=true Aug 28, 2004 12:30:53 AM 
org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, 
config='org.apache.webapp.admin.ApplicationResources', retur nNull=true 
Aug 28, 2004 12:30:55 AM org.apache.coyote.http11.Http11Protocol start 
INFO: Starting Coyote HTTP/1.1 on port 8080 Aug 28, 2004 12:30:55 AM 
org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on 
/0.0.0.0:8009 Aug 28, 2004 12:30:55 AM org.apache.jk.server.JkMain start 
INFO: Jk running ID=0 time=0/40 config=null Aug 28, 2004 12:32:39 AM 
org.apache.jk.common.HandlerRequest invoke SEVERE: Error decoding request 
java.io.IOException at 
org.apache.jk.common.JkInputStream.receive(JkInputStream.java:294) at 
org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java 
:537) at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:373) at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673) at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja 
va:615) at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786) at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP 
ool.java:683) at java.lang.Thread.run(Thread.java:534) 
 12 34 02 89 02 04 00 08 48 54 54 50 2f 31 2e 31  | .4.?....HTTP/1.1
00 00 20 2f 65 78 61 6d 70 6c 65 73 2f 73 65 72  | .. /examples/ser
76 6c 65 74 2f 53 65 73 73 69 6f 6e 45 78 61 6d  | vlet/SessionExam
70 6c 65 00 00 09 31 32 37 2e 30 2e 30 2e 31 00  | ple...127.0.0.1.
00 09 31 32 37 2e 30 2e 30 2e 31 00 00 09 6c 6f  | ..127.0.0.1...lo
63 61 6c 68 6f 73 74 00 00 50 00 00 0b a0 01 00  | calhost..P...?..
a4 69 6d 61 67 65 2f 67 69 66 2c 20 69 6d 61 67  | ?image/gif, imag
65 2f 78 2d 78 62 69 74 6d 61 70 2c 20 69 6d 61  | e/x-xbitmap, ima
67 65 2f 6a 70 65 67 2c 20 69 6d 61 67 65 2f 70  | ge/jpeg, image/p
6a 70 65 67 2c 20 61 70 70 6c 69 63 61 74 69 6f  | jpeg, applicatio
6e 2f 76 6e 64 2e 6d 73 2d 65 78 63 65 6c 2c 20  | n/vnd.ms-excel,
61 70 70 6c 69 63 61 74 69 6f 6e 2f 76 6e 64 2e  | application/vnd.
6d 73 2d 70 6f 77 65 72 70 6f 69 6e 74 2c 20 61  | ms-powerpoint, a
70 70 6c 69 63 61 74 69 6f 6e 2f 6d 73 77 6f 72  | pplication/mswor
64 2c 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78  | d, application/x
2d 73 68 6f 63 6b 77 61 76 65 2d 66 6c 61 73 68  | -shockwave-flash
2c 20 2a 2f 2a 00 a0 04 00 05 65 6e 2d 75 73 00  | , */*.?...en-us.
a0 06 00 0a 4b 65 65 70 2d 41 6c 69 76 65 00 a0  | ?...Keep-Alive.?
0b 00 09 6c 6f 63 61 6c 68 6f 73 74 00 a0 0d 00  | ...localhost.?..
7e 68 74 74 70 3a 2f 2f 6c 6f 63 61 6c 68 6f 73  | ~http://localhos
74 2f 65 78 61 6d 70 6c 65 73 2f 73 65 72 76 6c  | t/examples/servl
65 74 2f 53 65 73 73 69 6f 6e 45 78 61 6d 70 6c  | et/SessionExampl
65 3b 6a 73 65 73 73 69 6f 6e 69 64 3d 37 33 46  | e;jsessionid=73F
37 31 35 31 37 42 41 34 42 43 38 38 35 30 35 38  | 71517BA4BC885058
45 44 37 43 34 33 42 35 42 42 44 37 41 3f 64 61  | ED7C43B5BBD7A?da
74 61 6e 61 6d 65 3d 77 68 61 74 65 76 65 72 26  | taname=whatever&
64 61 74 61 76 61 6c 75 65 3d 73 65 65 6d 65 00  | datavalue=seeme.
a0 0e 00 45 4d 6f 7a 69 6c 6c 61 2f 34 2e 30 20  | ?..EMozilla/4.0
28 63 6f 6d 70 61 74 69 62 6c 65 3b 20 4d 53 49  | (compatible; MSI
45 20 36 2e 30 3b 20 57 69 6e 64 6f 77 73 20 4e  | E 6.0; Windows N
54 20 35 2e 31 3b 20 2e 4e 45 54 20 43 4c 52 20  | T 5.1; .NET CLR
31 2e 31 2e 34 33 32 32 29 00 a0 09 00 2b 4a 53  | 1.1.4322).?..+JS
45 53 53 49 4f 4e 49 44 3d 37 33 46 37 31 35 31  | ESSIONID=73F7151
37 42 41 34 42 43 38 38 35 30 35 38 45 44 37 43  | 7BA4BC885058ED7C
34 33 42 35 42 42 44 37 41 00 a0 08 00 02 33 38  | 43B5BBD7A.?...38
00 a0 07 00 21 61 70 70 6c 69 63 61 74 69 6f 6e  | .?..!application
2f 78 2d 77 77 77 2d 66 6f 72 6d 2d 75 72 6c 65  | /x-www-form-urle
6e 63 6f 64 65 64 00 a0 03 00 0d 67 7a 69 70 2c  | ncoded.?...gzip,
20 64 65 66 6c 61 74 65 00 00 0d 63 61 63 68 65  |  deflate...cache
2d 63 6f 6e 74 72 6f 6c 00 00 08 6e 6f 2d 63 61  | -control...no-ca
63 68 65 00 03 00 00 00 04 00 00 00 ff           | che.........?
Aug 28, 2004 12:32:39 AM org.apache.jk.common.ChannelSocket 
processConnection WARNING: processCallbacks status 2 

** Here's the jk log

[Sat Aug 28 00:41:01 2004]  [jk_isapi_plugin.c (655)]: HttpFilterProc
started
[Sat Aug 28 00:41:01 2004]  [jk_isapi_plugin.c (718)]: In HttpFilterProc
Virtual Host redirection of /localhost/examples/servlet/SessionExample
[Sat Aug 28 00:41:01 2004]  [jk_uri_worker_map.c (445)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sat Aug 28 00:41:01 2004]  [jk_uri_worker_map.c (459)]: Attempting to map
URI '/localhost/examples/servlet/SessionExample'
[Sat Aug 28 00:41:01 2004]  [jk_uri_worker_map.c (483)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match test -> /
[Sat Aug 28 00:41:01 2004]  [jk_isapi_plugin.c (734)]: HttpFilterProc
[/examples/servlet/SessionExample] is a servlet url - should redirect to
test
[Sat Aug 28 00:41:01 2004]  [jk_isapi_plugin.c (797)]: HttpFilterProc check
if [/examples/servlet/SessionExample] is points to the web-inf directory
[Sat Aug 28 00:41:01 2004]  [jk_isapi_plugin.c (837)]: HttpExtensionProc
started
[Sat Aug 28 00:41:01 2004]  [jk_worker.c (90)]: Into wc_get_worker_for_name
test
[Sat Aug 28 00:41:01 2004]  [jk_worker.c (94)]: wc_get_worker_for_name, done
found a worker
[Sat Aug 28 00:41:01 2004]  [jk_isapi_plugin.c (872)]: HttpExtensionProc got
a worker for name test
[Sat Aug 28 00:41:01 2004]  [jk_ajp_common.c (1741)]: Into
jk_worker_t::get_endpoint
[Sat Aug 28 00:41:01 2004]  [jk_ajp_common.c (1367)]: Into
jk_endpoint_t::service
[Sat Aug 28 00:41:01 2004]  [jk_ajp_common.c (257)]: Into
ajp_marshal_into_msgb
[Sat Aug 28 00:41:01 2004]  [jk_ajp_common.c (425)]: ajp_marshal_into_msgb -
Done
[Sat Aug 28 00:41:01 2004]  [jk_connect.c (136)]: Into jk_open_socket
[Sat Aug 28 00:41:01 2004]  [jk_connect.c (143)]: jk_open_socket, try to
connect socket = 2024 to 10.1.85.135:8009
[Sat Aug 28 00:41:01 2004]  [jk_connect.c (159)]: jk_open_socket, after
connect ret = 0
[Sat Aug 28 00:41:01 2004]  [jk_connect.c (168)]: jk_open_socket, set
TCP_NODELAY to on
[Sat Aug 28 00:41:01 2004]  [jk_connect.c (185)]: jk_open_socket, return, sd
= 2024
[Sat Aug 28 00:41:01 2004]  [jk_ajp_common.c (701)]: In
jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 2024 to
10.1.85.135:8009
[Sat Aug 28 00:41:01 2004]  [jk_ajp_common.c (737)]: sending to ajp13 #653
[Sat Aug 28 00:41:01 2004]  [jk_ajp_common.c (1035)]: ajp_send_request 2:
request body to send 38 - request body to resend 0
[Sat Aug 28 00:41:01 2004]  [jk_isapi_plugin.c (473)]: Into
jk_ws_service_t::read
[Sat Aug 28 00:42:01 2004]  [jk_isapi_plugin.c (507)]:
jk_ws_service_t::read, ReadClient failed
[Sat Aug 28 00:42:01 2004]  [jk_ajp_common.c (929)]: ERROR: receiving data
from client failed. Connection aborted or network problems
[Sat Aug 28 00:42:01 2004]  [jk_ajp_common.c (1462)]: ERROR: Client
connection aborted or network problems
[Sat Aug 28 00:42:01 2004]  [jk_isapi_plugin.c (884)]: HttpExtensionProc
service() returned OK
[Sat Aug 28 00:42:01 2004]  [jk_ajp_common.c (1724)]: Into
jk_endpoint_t::done, closing connection 0
[Sat Aug 28 00:42:01 2004]  [jk_ajp_common.c (567)]: In
jk_endpoint_t::ajp_close_endpoint

** Here's a piece from the IIS logs

04:42:01 127.0.0.1 POST /jakarta/isapi_redirect.dll 200

**Here's a link to the bugzilla entry

http://issues.apache.org/bugzilla/show_bug.cgi?id=30551


** other post with same issue.

http://www.devarchives.com/ml-display/81814/java/Tomcat-Users-List-tomcat-userjakartaapacheorg/Re-Problem-with-Tomcat-4.1.30-IIS-isapi_redirect.dll-and-POSTs


** Here's the config files

# *********** Begin uriworkermap.properties ***
/examples/*=test
/examples/*.jsp=test
/examples/servlet/*=test

# ************ Begin worker.properties **************
worker.list=test
worker.test.host=10.1.85.135
worker.test.port=8009
worker.test.type=ajp13

I did get POSTS to work once!!!
1)POST failed as always
2)On second attempt IIS prompted for credentials
3)Supply credentials/POST succeeded consistently until restart

Unfortunatly have not seen that behaviour (security challange) since and
it's still incorrect behavior.


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

Reply via email to