• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception while loading the jsp program

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Experts
I am using "jakarta-tomcat-4.0.1","j2eesdk-1_4_01"
I set environment variables
JAVA_HOME= C:\Sun\AppServer\jdk
CATALINA_HOME= C:\Program Files\jakarta-tomcat-4.0.1

I placed "Add.jsp" in C:\Program Files\jakarta-tomcat-4.0.1\webapps\ROOT
when I try to load the jsp page via
address: "http://localhost:8080/webapps/ROOT/Add.jsp"


This exception is displayed on command promt..

java.lang.NoSuchMethodError: javax.servlet.ServletResponse.flushBuffer()V
at org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:244)
at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
at java.io.PrintWriter.flush(PrintWriter.java:120)
at org.apache.catalina.connector.ResponseWriter.flush(ResponseWriter.java:125)
at org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:481)
at org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBase.java:229)
at org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpResponseImpl.java:288)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1038)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:534)
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why did you expect this URL to work?

when I try to load the jsp page via
address: "http://localhost:8080/webapps/ROOT/Add.jsp"



Surely you must have noticed that the examples use a URL that looks like:
"http://localhost:8080/Add.jsp"

The ../webapps/ROOT/ directory is where Tomcat looks for the "/" resources.
Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic