I have successfully configured JK2 to have IIS working with Tomcat. However, I am having a problem:

My servlet receives a HTTP request from client which contains an XML document in the request body. Whenever I post a request thru IIS with a header Transfer-Encoding: chunked, the body of the request is missing (HttpServletRequest.getInputStream() is empty) and my program can not continue because the XML document is not there. This works fine if I directly go to Tomcat. If I set the Content-Length to the header, I can retrieve the request body alright. Since the xml doc is dynamically generated each time and vary in size, I have to send it in chunks.

There are some error messages in the JK2 log:
Error: [jk_channel_apr_socket.c (488)]: channelApr.receive(): Error receiving message body -1 0
Error: [jk_workerEnv.c (492)]: workerEnv.processCallbacks() Error reading reply
Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 120000


I don't know which part I did wrong. Is the IIS configurations? or JK2? Please help and point me some directions.

I am using:
IIS5.0
Tomcat 4.1.30
JK2 2.0.4
and here is one of my sample request shown in the tcptrace:
-------------------------------------------------------------
<Header>
POST /hctest/servlet/HandCloudServer HTTP/1.1
marshaller: HCLOUDSYNCMARSHALLER
User-Agent: Jakarta Commons-HttpClient/2.0rc3
Host: localhost:8081
Transfer-Encoding: chunked
<Body>
18c
<?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>search</methodName><params><param><s>(Product_Id=100)</s></param><param><s>Product</s></param><param><array></array></param><param><dt>2004-07-22T21:50:20</dt></param><param><int>0</int></param><param><int>-1</int></param></params></methodCall>
0
---------------------------------------------------------------------




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



Reply via email to