Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat HTTP connection

 
Simran Brar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"/>
</Connector>

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
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic