Thank you Tim.  That did it.

I changed the size from "16k" to "16kb" and it solved the problem.  It is
strange that I have not encounter this issue with Tomcat 4.0.6, but with
Tomcat 4.1.21 and 4.1.24.


Willy

-----Original Message-----
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 5:43 PM
To: Tomcat Users List
Subject: Re: Tomcat buffer size problem?


In the copy of the spec I see:

<%@ page page_directive_attr_list %>
page_directive_attr_list ::= { language=� scriptingLanguage� }
{ extends=� className� }
{ import=� importList� }
{ session=�true|false� }
{ buffer=�none| sizekb� }
{ autoFlush=�true| false� }
{ isThreadSafe=�true|false� }
{ info=� info_text� }
{ errorPage=� error_url� }
{ isErrorPage=�true|false� }
{ contentType=�ctinfo� }

So I am *guessing* you need to change:
<%@ page language="java" import="java.util.*,java.io.*,apex.vs_admin.*" 
buffer="16k"%>
to
<%@ page language="java" import="java.util.*,java.io.*,apex.vs_admin.*"
  buffer="16kb"%>

I think its odd (probably a typo in the spec) because they use as an 
example in the spec (2.7.1): (notice is k, not kb)
<%@ page language=�java� import=�com.myco.*� buffer=�16k� %>



-Tim

Willy Lin wrote:
> Hi:
> 
>       I have an application in a WAR file.  I have no problem with it
> running under Tomcat 4.0.6.  However when I deployed it to Tomcat 4.1.21,
I
> got the following error:
>       
> org.apache.jasper.JasperException: /home/top_nav.jsp(0,0) Invalid buffer
> size
>       at
>
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
> java:94)
  <SNIP>
>       
>       I tracked the problem to the following line
>       
> <%@ page language="java" import="java.util.*,java.io.*,apex.vs_admin.*"
> buffer="16k"%>
> 
>       The issue is the buffer.  When I take out the buffer setting, then
> the page show up without any problem.  I tried my application under Tomcat
> 4.1.24 and it is having the same issue.
>       
>       Anyone encountered this?  TIA
>       
>       
>       
> Willy
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to