Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: tomcat: NoSuchMethodError


Message #1 by dgk@c... on Fri, 24 Aug 2001 17:14:38
I consistently get a "NoSuchMethodError" when auto-generated servlet of a 
JSP page is run.  The message comes up after the JSP portion of the 
servlet has been executed and it is doing its final cleanup.  It happens 
when it tries to run the "flush" method in 
the "org.apache.jasper.runtime.JspWriterImpl" class.  I have tried running 
the examples that come with the Tomcat server as well as my own 
application.  The applications seem to do what they are supposed to do in 
most cases, but this error always occurrs.   I have tested this in both 
the 3.2.3 version and the version prior to the 3.2.3 version.  Can anyone 
give me a clue as to what is going on?  Do I not have something installed 
correctly?  The following is what the error looks like:

Context log: path="/examples" Adding context path="/examples"  
docBase="webapps/
examples"
Context log: path="" Adding context path=""  docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test"  
docBase="webapps/test"
Context log: path="/wlsWeb" Adding context path="/wlsWeb"  
docBase="webapps/wlsW
eb"
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat install="c:\jakarta-tomcat" home="C:\jakarta-tomcat" 
classPath="
c:\jakarta-tomcat\classes;c:\jakarta-tomcat\lib\webserver.jar;c:\jakarta-
tomcat\
lib\jasper.jar;c:\jakarta-tomcat\lib\xml.jar;c:\jakarta-
tomcat\lib\servlet.jar;c
:\jdk1.3.0_02\lib\tools.jar;.;c:\jdk1.3.0_02\lib\tools.jar;"
Unhandled error! You might want to consider having an error page to report 
such
errors more gracefully
java.lang.NoSuchMethodError
        at org.apache.jasper.runtime.JspWriterImpl.flush
(JspWriterImpl.java:195)

        at 
jsp.num._0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0._jspS
ervice(_0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0.java:150)
        at org.apache.jasper.runtime.HttpJspBase.service
(HttpJspBase.java:126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
(JspSer
vlet.java:174)
        at org.apache.jasper.runtime.JspServlet.serviceJspFile
(JspServlet.java:2
61)
        at org.apache.jasper.runtime.JspServlet.service
(JspServlet.java:369)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at org.apache.tomcat.core.ServletWrapper.handleRequest
(ServletWrapper.ja
va:503)
        at org.apache.tomcat.core.ContextManager.service
(ContextManager.java:559
)
        at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:160)
        at org.apache.tomcat.service.TcpConnectionThread.run
(SimpleTcpEndpoint.j
ava:338)
        at java.lang.Thread.run(Thread.java:484)


I need to resolve this problems ASAP.  Any help would be greatly 
appreciated.

Thankyou,

Dean Keeler
CNC Connection Corp
dgk@c...

  Return to Index