tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: "Exception Initializing Page Context"
Date Tue, 18 Aug 2009 21:39:38 GMT
Gwen Way wrote:
> java.lang.IllegalStateException: Cannot create a session after the
> response has been committed 

Seems pretty clear.

Creating a session requires setting some headers (to send the session
cookie to the client). You can't do that after the response has been
committed (usually after a few kilobytes of data has been written).

The solution? Create your session earlier, ideally before yousend any
content to the client.

Mark




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message