tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message