tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kitching Simon <>
Subject RE: Using TOMCAT as Service on NT
Date Tue, 19 Sep 2000 14:29:53 GMT

If any code in a jsp page, or anything called from a jsp page (like a
bean) throws an exception of any kind, then you are likely to get an
IllegalStateException reported.

The cause is that tomcat catches the original exception, and tries to 
redirect the client browser to an error page, but this is not possible 
if the first part of a page has already been sent, so tomcat ends up 
throwing an IllegalStateException, hiding the original exception. 

Anyway, my guess is that for some reason part of your code, or
a bean that you call from one of your pages, is throwing an exception
when running as a service but not as a normal app started by a logged-in
user. Perhaps something to do with file access permissions? Or environment

All I can suggest to track this down is to put lots of logging statements
in your code, to try and track down where the original hidden exception
is coming from....



> -----Original Message-----
> From:	Lacerda, Wellington (AFIS) []
> Sent:	Tuesday, September 19, 2000 4:13 PM
> To:	''
> Subject:	RE: Using TOMCAT as Service on NT
> Hi Marcelo,
> (I'm Brazilian too but won't write Portuguese for other members in the
> list).
> I found IllegalStateException in two situations:
> 1.	When I was trying to include a JSP on the caller with
> pageContext.include() and I didn't flush the out writer
> 2.	Same as above, but the target (included) page was not in the proper
> directory
> Can you check that ? All my tomcats here are running as NT Services and I
> never found that exception associated with this.
> Wellington Silva
> 		-----Original Message-----
> 		From:	Marcelo Stefanelli Santos
> []
> 		Sent:	Tuesday, September 19, 2000 3:51 PM
> 		To:
> 		Subject:	Using TOMCAT as Service on NT
> 		Hi
> 		I´m trying to use TOMCAT as a service on NT.
> 		In this page:
> tm
> l
> 		I setup the basic steps and the TOMCAT is up and running but
> I have a
> 		problem.
> 		When I stop the service and initiate the TOMCAT by
> startup.bat, it
> 		executes the jsp correctly but using sevice, it returns an
> error like this:
> 		java.lang.IllegalStateException: Response has already been
> committed
> 		How can I solve this problem ?
> 		Thanks in advance
> 		Marcelo

View raw message