This means that within Tomcat 3.3's classloader hierarchy,
there is more than one JspWriterImpl and the "foreign" one
(i.e. the one that didn't come with Tomcat 3.3) doesn't have
a flushBuffer() method. Most likely, this is due to a jar
that has been added to the JAVA_HOME/jre/lib/ext library.

Cheers,
Larry

> -----Original Message-----
> From: Patrick Dyson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 10, 2001 11:40 AM
> To: [EMAIL PROTECTED]
> Subject: no such method error on
> ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();
> 
> 
> I am getting this error when I hit my first JSP page hosted 
> on a tomcat 3.3
> server, Win2k, JDK 1.3.0_1. The examples and admin pages work 
> fine with this
> installation. The compile error is coming from the wrapper 
> around my jsp,
> not anything in my jsp.
> 
> The contents of the page look like:
> 
> Error: 500
> Location: /lighthouse/login.jsp
> Internal Servlet Error:
> 
> org.apache.jasper.JasperException: Unable to compile
> C:\jakarta-tomcat-3.3\work\DEFAULT\lighthouse\login_1.java:288
> 3: No method
> matching flushBuffer() found in class
> org.apache.jasper.runtime.JspWriterImpl.
>               
> ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();
> 
> That code fragment in the generated java looks like:
> 
>               // end
>               // HTML // begin
> [file="C:\\jakarta-tomcat-3.3\\webapps\\bob\\login.jsp";from=(
> 65,42);to=(66,
> 0)]
>                   out.write("\r\n");
> 
>               // end
> 
>           } catch (Exception ex) {
>               if (out != null && out.getBufferSize() != 0)
>                   out.clearBuffer();
>               if (pageContext != null) 
> pageContext.handlePageException(ex);
>           } catch (Error error) {
>               throw error;
>           } catch (Throwable throwable) {
>               throw new ServletException(throwable);
>           }
>       } finally {
>           if (out instanceof 
> org.apache.jasper.runtime.JspWriterImpl) {
>               
> ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();
>           }
>           if (_jspxFactory != null)
> _jspxFactory.releasePageContext(pageContext);
>       }
> 
> 
> 
> My server is setup with a custom context, but I get the same 
> error with a
> standard entry in the webapps directory. I searched the 
> mailing list and
> newsgroups and found this post, but not replies, and the 
> author has not
> heard from anyone. I apologize if this has been covered, I 
> cannot find any
> mention of it.
> 
> Any help is appreciated.
> 
> Patrick
> 
> http://groups.google.com/groups?q=tomcat+JspWriterImpl+no+meth
od+matching+fl
ushBuffer()&hl=en&rnum=2&selm=AW1P7.1958%24_3.8295%40news.iol.ie

Hello,

I'm running Tomcat3.3 as a service on Win2k with IIS.

I can get the example jsp's to run perfectly, however when I request one of
my own I get the following error:

Error: 500
Location: /knowware/jsp/ScormWizard.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile
C:\tomcat3.3\work\DEFAULT\knowware\jsp\ScormWizard_1.java:182: No method
matching flushBuffer() found in class
org.apache.jasper.runtime.JspWriterImpl.

((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();
                                                                          ^
Has anybody seen this before and do they know the cause.I'm positive I've
got Tomcat set up correctly and have the appropriate xml files configured
right.
Any help would be appreciated.
Thanks.



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to