Hi There,

I encountered a problem while running the jsp examples with tomcat-4/IIS 
5.0. Actually the examples work fine until I included "webagent" from 
Netegrity to protect the url. The "webagent" added couple cookies and 
few http headers to the request after it authenticated the user. Somehow 
it breaks the Ajp13. Below are the trace messages from Ajp13 and 
isapi.log. I captured the first portion of the requests that send to 
connector's port (8009).

This is the first portion of the request that works.
\x00124\x0001�\x0002\x0002\x0000\bHTTP/1.1\x0000\x0000\x0018/examples/jsp/index.html\x0000\x0000\t127.0.0.1\x0000\x0000\t127.0.0.1\x0000\x0000\tlocalhost\x0000\x0000P\x0000\x0000\t
 
\x0001\x0000...image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/vnd.ms-excel, application/vnd.ms-powerpoint, 
application/msword, */*\x0000 \x0004\x0000\x0005en-us\x0000 
\x0006\x0000\nKeep-Alive\x0000 \x000B\x0000\tloc...

This is the first portion of the request that fails.
"\x00124\x0005�\x0002\x0002\x0000\bHTTP/1.1\x0000\x0000\x0018/examples/jsp/index.html\x0000\x0000\t127.0.0.1\x0000\x0000\t127.0.0.1\x0000\x0000\tlocalhost\x0000\x0000P\x0000\x0000\x001B
 
\x0001\x0000...image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/vnd.ms-excel, application/vnd.ms-powerpoint, 
application/msword, */*\x0000 \x0004\x0000\x0005en-us\x0000 
\x0006\x0000\nKeep-Alive\x0000 \x000B\x0000\tloc..."

Looks like the webagent and isapi_redirector.dll steped on each other. 
Any ideas if I can work around this problem? Is there a newer version of 
isapi_redirector.dll/Ajp13 I can download and give a try? The 
isapi_redirector.dll I am using is from the Tomcat 3.3 distribution.

Thanks,
Paul Chen

Catalina console output
[Ajp13] setSocket()
[Ajp13] receiveNextRequest()
[Ajp13] receive()
[Ajp13] receive: len = 1447
[Ajp13] receive: total read = 1447
[Ajp13] decodeRequest()
java.lang.NumberFormatException
at org.apache.tomcat.util.buf.Ascii.parseInt(Ascii.java:188)
at org.apache.tomcat.util.buf.ByteChunk.getInt(ByteChunk.java:439)
at org.apache.tomcat.util.buf.MessageBytes.getInt(MessageBytes.java:565)

at org.apache.ajp.Ajp13.decodeRequest(Ajp13.java:382)
at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:298)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:339
)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
at java.lang.Thread.run(Thread.java:536)



isapi.log
Tue Feb 26 10:14:44 2002] [jk_uri_worker_map.c (447)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Tue Feb 26 10:14:44 2002] [jk_uri_worker_map.c (464)]: Attempting to 
map URI '/examples/jsp/index.html'
[Tue Feb 26 10:14:44 2002] [jk_uri_worker_map.c (489)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> 
/examples/
[Tue Feb 26 10:14:44 2002] [jk_isapi_plugin.c (721)]: HttpFilterProc 
[/examples/jsp/index.html] is a servlet url - should redirect to ajp13
[Tue Feb 26 10:14:44 2002] [jk_isapi_plugin.c (784)]: HttpFilterProc 
check if [/examples/jsp/index.html] is points to the web-inf directory
[Tue Feb 26 10:14:45 2002] [jk_isapi_plugin.c (824)]: HttpExtensionProc 
started
[Tue Feb 26 10:14:45 2002] [jk_worker.c (132)]: Into 
wc_get_worker_for_name ajp13
[Tue Feb 26 10:14:45 2002] [jk_worker.c (136)]: wc_get_worker_for_name, 
done found a worker
[Tue Feb 26 10:14:45 2002] [jk_isapi_plugin.c (860)]: HttpExtensionProc 
got a worker for name ajp13
[Tue Feb 26 10:14:45 2002] [jk_ajp_common.c (1352)]: Into 
jk_worker_t::get_endpoint
[Tue Feb 26 10:14:45 2002] [jk_ajp_common.c (1075)]: Into 
jk_endpoint_t::service
[Tue Feb 26 10:14:45 2002] [jk_ajp_common.c (280)]: Into 
ajp_marshal_into_msgb
[Tue Feb 26 10:14:45 2002] [jk_ajp_common.c (413)]: 
ajp_marshal_into_msgb - Done
[Tue Feb 26 10:14:45 2002] [jk_connect.c (116)]: Into jk_open_socket
[Tue Feb 26 10:14:45 2002] [jk_connect.c (123)]: jk_open_socket, try to 
connect socket = 1916
[Tue Feb 26 10:14:45 2002] [jk_connect.c (132)]: jk_open_socket, after 
connect ret = 0
[Tue Feb 26 10:14:45 2002] [jk_connect.c (140)]: jk_open_socket, set 
TCP_NODELAY to on
[Tue Feb 26 10:14:45 2002] [jk_connect.c (148)]: jk_open_socket, return, 
sd = 1916
[Tue Feb 26 10:14:45 2002] [jk_ajp_common.c (588)]: In 
jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 1916
[Tue Feb 26 10:14:45 2002] [jk_ajp_common.c (612)]: sending to ajp13 #1451
[Tue Feb 26 10:14:45 2002] [jk_ajp_common.c (853)]: ajp_send_request 2: 
request body to send 0 - request body to resend 0
[Tue Feb 26 10:16:39 2002] [jk_ajp_common.c (651)]: 
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Tue Feb 26 10:16:39 2002] [jk_ajp_common.c (1009)]: Error reading reply
[Tue Feb 26 10:16:39 2002] [jk_ajp_common.c (1146)]: In 
jk_endpoint_t::service, ajp_get_reply failed in send loop 0
[Tue Feb 26 10:16:39 2002] [jk_connect.c (116)]: Into jk_open_socket
[Tue Feb 26 10:16:39 2002] [jk_connect.c (123)]: jk_open_socket, try to 
connect socket = 1916
[Tue Feb 26 10:16:39 2002] [jk_connect.c (132)]: jk_open_socket, after 
connect ret = 0
[Tue Feb 26 10:16:39 2002] [jk_connect.c (140)]: jk_open_socket, set 
TCP_NODELAY to on
[Tue Feb 26 10:16:39 2002] [jk_connect.c (148)]: jk_open_socket, return, 
sd = 1916
[Tue Feb 26 10:16:39 2002] [jk_ajp_common.c (588)]: In 
jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 1916
[Tue Feb 26 10:16:39 2002] [jk_ajp_common.c (612)]: sending to ajp13 #1451
[Tue Feb 26 10:16:39 2002] [jk_ajp_common.c (853)]: ajp_send_request 2: 
request body to send 0 - request body to resend 0
[Tue Feb 26 10:16:43 2002] [jk_ajp_common.c (651)]: 
ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Tue Feb 26 10:16:43 2002] [jk_ajp_common.c (1009)]: Error reading reply
[Tue Feb 26 10:16:43 2002] [jk_ajp_common.c (1146)]: In 
jk_endpoint_t::service, ajp_get_reply failed in send loop 1
[Tue Feb 26 10:16:43 2002] [jk_connect.c (116)]: Into jk_open_socket
[Tue Feb 26 10:16:43 2002] [jk_connect.c (123)]: jk_open_socket, try to 
connect socket = 1916
[Tue Feb 26 10:16:43 2002] [jk_connect.c (132)]: jk_open_socket, after 
connect ret = 0
[Tue Feb 26 10:16:43 2002] [jk_connect.c (140)]: jk_open_socket, set 
TCP_NODELAY to on
[Tue Feb 26 10:16:43 2002] [jk_connect.c (148)]: jk_open_socket, return, 
sd = 1916
[Tue Feb 26 10:16:43 2002] [jk_ajp_common.c (588)]: In 
jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 1916
[Tue Feb 26 10:16:43 2002] [jk_ajp_common.c (612)]: sending to ajp13 #1451
[Tue Feb 26 10:16:43 2002] [jk_ajp_common.c (853)]: ajp_send_request 2: 
request body to send 0 - request body to resend 0
[Tue Feb 26 10:18:10 2002] [jk_uri_worker_map.c (188)]: Into 
jk_uri_worker_map_t::uri_worker_map_free
[Tue Feb 26 10:18:10 2002] [jk_uri_worker_map.c (428)]: Into 
jk_uri_worker_map_t::uri_worker_map_close
[Tue Feb 26 10:18:10 2002] [jk_worker.c (118)]: Into wc_close
[Tue Feb 26 10:18:10 2002] [jk_worker.c (199)]: close_workers got 1 
workers to destroy
[Tue Feb 26 10:18:10 2002] [jk_worker.c (206)]: close_workers will 
destroy worker ajp13
[Tue Feb 26 10:18:10 2002] [jk_ajp_common.c (1271)]: Into 
jk_worker_t::destroy
[Tue Feb 26 10:18:10 2002] [jk_ajp_common.c (1278)]: Into 
jk_worker_t::destroy up to 1 endpoint to close
[Tue Feb 26 10:18:10 2002] [jk_worker.c (120)]: wc_close, done




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to