I am having trouble getting tomcat to output results from a jsp.
Every time I try to access one I get the following error. Anybody got
any suggestions on this one?
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile
Found 1 semantic error compiling
"C:/jakarta-tomcat-3.3/work/DEFAULT/knowware/jsp/SimpleJSP_1.java":
81.
((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();
<---------------------------------------------------------->
*** Error: Method "void flushBuffer();" in class
"org/apache/jasper/runtime/JspWriterImpl" has protected or default
access. Therefore, it is not accessible in class "jsp/SimpleJSP_1"
which is in a different package.
at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown
Source)
at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
at org.apache.tomcat.core.ContextManager.processRequest(Unknown
Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)
Well, does your jsp try to call flushBuffer?
--
Jon Skeet - <sk...@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
<%@page contentType="text/html"%>
<html>
<head><title>JSP Page</title></head>
<body>
<%-- <jsp:useBean id="beanInstanceName" scope="session"
class="package.class" /> --%>
<%-- <jsp:getProperty name="beanInstanceName" property="propertyName"
/> --%>
<%
out.println("<H1>SimpleJSP Test</H1>");
%>
</body>
</html>
It is a very simple jsp:
<%@page contentType="text/html"%>
<html>
<head><title>JSP Page</title></head>
<body>
<%
out.println("<H1>Hello World</H1>");
%>
</body>
</html>
I don't think it is caused from the jsp code itself. I'm thinking it
is from not having the server.xml / apps-xxxx.xml / web.xml set up
properly? Any hints on this?
*looks puzzled*
< BUMP > ?
What's that mean? Just curious.
Michiel
Unfortunately that's not how Usenet works. "The top of the list" is a
meaningless concept, as everyone will see it differently, and generally
speaking, if people don't answer your question it's because they don't
know the answer.