Hi,
When I try the throwing_exception.html example on Chapter 9, I recieve the next error message.
org.apache.jasper.JasperException: JSP Class cannot be compiled.
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:128)
org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:348)
org.apache.jasper.compiler.Compiler.generateClass( Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:455)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:439)
org.apache.jasper.JspCompilationContext.compile(
Js pCompilationContext.java:555)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:300)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:293)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:240)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
Loking at the tomcat logs I find the next message
23-feb-2004 13:29:48 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Error compiling file: C:\jwsdp-1.3\work\Catalina\localhost\begjsp-ch09\org\apache\jsp\web\throwing_005fexception_jsp .java [javac] Compiling 1 source file
[javac] C:\jwsdp-1.3\work\Catalina\localhost\begjsp-ch09\org\apache\jsp\web\throwing_005fexception_jsp .java:83: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
[javac] if (pageContext != null) pageContext.handlePageException(t);
[javac] ^
[javac] 1 error
What can be wrong?
TIA
Jesus Gutierrez.