RE: Tomcat + Jboss - porting Pet Store

2000-12-08 Thread Parayali, Jayesh 1065
Title: RE: Tomcat + Jboss - porting Pet Store





I checked the code... it says ignore this message.
Check out PoolTcpEndPoint.java


-Original Message-
From: Madhu Narasa [SMTP:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 2:20 PM
To: [EMAIL PROTECTED]
Subject: Tomcat + Jboss - porting Pet Store


I am running Tomcat 3.2 with Jboss and trying to port
the PetStore example (J2EE Sun RI, example).


I am almost done except that I see a lot of
Connection reset errors after every page request.
After searching through the archives, I see others
have had the same problems in different contexts but
there seems to be no solution to the problem.


The dev lists suggest the following (that is being
considered for 3.3 dev)
http://w4.metronet.com/~wjm/tomcat/2000/Jul/msg00910.html


Commenting out the following lines -
sout.write( buffer, 0, bufferCount );
sout.flush();


in the method endHeaders() of HttpResponseAdapter.java


The above fix did eliminate errors of the type -
2000-12-08 11:39:27 - Ctx( /estore ): IOException in:
R( /estore + /template.js + null) Connection reset by
peer: socket write error


but the stack trace reported below continued.


Any help is appreciated.


Thanks,
Madhu



 Complete Stack --
[Tomcat] java.net.SocketException: Connection reset by
peer: socket write error
[Tomcat] at
java.net.SocketOutputStream.socketWrite(Native Method)
[Tomcat] at
java.net.SocketOutputStream.write(SocketOutputStream.java:83)
[Tomcat] at
org.apache.tomcat.service.http.HttpResponseAdapter.doWrite(HttpResponseAdapter.java:164)
[Tomcat] at
org.apache.tomcat.core.BufferedServletOutputStream.doWrite(BufferedServletOutputStream.java:121)
[Tomcat] at
org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java:246)
[Tomcat] at
org.apache.tomcat.core.ResponseImpl.flushBuffer(ResponseImpl.java:417)
[Tomcat] at
org.apache.tomcat.facade.HttpServletResponseFacade.flushBuffer(HttpServletResponseFacade.java:295)
[Tomcat] at
org.apache.jasper.runtime.JspWriterImpl.flus(JspWriterImpl.java:209)
[Tomcat] at
_0002fbanner_0002ejspbanner_jsp_3._jspService(_0002fbanner_0002ejspbanner_jsp_3.java:306)
[Tomcat] at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
[Tomcat] at
javax.servlet.http.HttpServlet.servic(HttpServlet.java:853)
[Tomcat] at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
[Tomcat] at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
[Tomcat] at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
391)
[Tomcat] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[Tomcat] at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
[Tomcat] at
org.apache.tomcat.core.Handler.service(Handler.java:286)
[Tomcat] at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
[Tomcat] at
org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:345)
[Tomcat] at com.sun.estore.taglib.InsertTag.doEndTag(InsertTag.java:67)


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/





RE: Tomcat + Jboss - porting Pet Store

2000-12-08 Thread Madhu Narasa

From what I gather, the comment -
// TCP stacks can throw SocketExceptions when the 
// client disconnectsso can be ignored.

Addresses the case wherein the browser is closing the
socket (eg. clicking on stop before completion of the
request). 

I am ok with the server throwing an exception in the
above case but throwing an exception for every request
seems like a problem to me.

Regards,
Madhu


--- "Parayali, Jayesh 1065"
[EMAIL PROTECTED] wrote:
 I checked the code... it says ignore this message.
 Check out PoolTcpEndPoint.java
 



__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



RE: Tomcat + Jboss - porting Pet Store

2000-12-08 Thread Parayali, Jayesh 1065
Title: RE: Tomcat + Jboss - porting Pet Store





this happens even if u just refresh... after completion of the request


-Original Message-
From: Madhu Narasa [SMTP:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 3:32 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat + Jboss - porting Pet Store


From what I gather, the comment -
// TCP stacks can throw SocketExceptions when the 
// client disconnectsso can be ignored.


Addresses the case wherein the browser is closing the
socket (eg. clicking on stop before completion of the
request). 


I am ok with the server throwing an exception in the
above case but throwing an exception for every request
seems like a problem to me.


Regards,
Madhu



--- Parayali, Jayesh 1065
[EMAIL PROTECTED] wrote:
 I checked the code... it says ignore this message.
 Check out PoolTcpEndPoint.java





__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/