File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Tomcat: Servlet.service(): unbelievable getOutputStreamException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Tomcat: Servlet.service(): unbelievable getOutputStreamException" Watch "Tomcat: Servlet.service(): unbelievable getOutputStreamException" New topic

Tomcat: Servlet.service(): unbelievable getOutputStreamException

Shishir Sanghvi

Joined: Feb 25, 2003
Posts: 7
Hi, i have a security check on all my jsp files like this:
(i can't use REALM or any component)

It worked fine during one day but now i have this error
----- Root Cause -----"getOutputStream()" has already been called for this response. at org.apache.coyote.tomcat4.CoyoteResponse.getWriter( "Servlet.service()" for the servlet jsp has generated an exception
And now nobody can log-on!!!
I don't understand what did i wrong???
My God:now, even if i put my old jsp files, it is not workin' any more. Always the same message. What is wrong with the Tomcat Servlet???
Thanks alot for any suggestion
[ March 15, 2003: Message edited by: Shishir Sanghvi ]
[ March 15, 2003: Message edited by: Shishir Sanghvi ]
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 642
I think there is problem in else part
by any chance r u using<jsp:include > for some header or menu
if this is the case then try commenting jsp:include and c if it works

All desirable things in life are either illegal, banned, expensive or married to someone else !!!
I agree. Here's the link:
subject: Tomcat: Servlet.service(): unbelievable getOutputStreamException
jQuery in Action, 3rd edition