tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat 7 Exception initializing page context; Cannot create a session after the response has been committed
Date Thu, 03 May 2012 15:02:23 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Terence,

On 5/3/12 10:40 AM, Terence M. Bandoian wrote:
> On 1:59 PM, David Wall wrote:
>> 
>> My actual JSP source file top lines looks normal:
>> 
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
>> "http://www.w3.org/TR/html4/strict.dtd"> <%@page
>> contentType="text/html; charset=ISO-8859-1" 
>> import="org.example.PlayerRegistration2Page"%> <jsp:useBean
>> id="bean" scope="request" 
>> class="org.example.PlayerRegistration2Page" />
>> 
>> So this is Tomcat throwing an exception before it even reaches
>> my code.  What might be the cause since of course the webapp
>> works fine most of the time.
> 
> How is the white space before and after the page directive
> handled?

Assuming he doesn't have a few KiB of whitespace surrounding the
<@page> directive, it shouldn't be a problem: the default response
buffer size is 8KiB.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+inf8ACgkQ9CaO5/Lv0PDNzwCdETfq/jtICcKwoNsf6Luy94X3
nKUAoLcuKutpAFasLoNSeCRsa23+yhWa
=cyXv
-----END PGP SIGNATURE-----

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


Mime
View raw message