File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat HTTP connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat HTTP connection" Watch "Tomcat HTTP connection" New topic

Tomcat HTTP connection

Simran Brar

Joined: Jun 01, 2004
Posts: 3
I have Tomcat 3.2.3 running in conjuction with Cocoon 1.8.2. The application runs smoothly on Windows 2000 platform i.e the tomcat log does show this error "Connection reset by peer: socket write error" but seems to be harmless as the application does nto break anywhere. While running the same application on Windows XP it breaks when I try to call a servlet which renders a csv file to the client.

This is an iframe embedded inside the page. On the click of a button the contents of iframe are dynamically loaded and sent to a servlet, which then renders the csv file. This functionallity breaks about 80% of the time on XP. The connection with tomcat somehow breaks and "Cannot find server" is displayed.

Initially I thought this was a problem with TCP/IP on the client machine and changed the registry settings to have a longer keepAlive interval but it still doesn't work. The server.xml for tomcat has the following configuration for connectors:

<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port" value="9900"/>

Any help would be greatly appreciated. I am not sure if this problem is specific to Tomcat 3.2.3 and would be solved if i use Coyote connector in the higher version.

Any suggestions?
[ June 01, 2004: Message edited by: Simran Brar ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63869

Welcome to the Ranch Simram. I'm not sure why you posted this question in the build tools forum. So I'm moving this to our Tomcat forum for you.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Tomcat HTTP connection
jQuery in Action, 3rd edition