This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSP and the fly likes Professional JSP 2nd edition ch06 errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Professional JSP 2nd edition ch06 errors" Watch "Professional JSP 2nd edition ch06 errors" New topic

Professional JSP 2nd edition ch06 errors

Archana Annamaneni
Ranch Hand

Joined: Jan 29, 2003
Posts: 147
Hi ,
I have downloaded the code for chapter6 of Professional JSP 2nd edition and compiled all the classes and configured everything.When I access the page from the browser as
http://localhost:8080/ch06/index.html it is loading the index.html on the top frame but when it tries to load the bottom frame which access the welcome.jsp I am getting the following error
HTTP Status 500 -
type Exception report
description The server encountered an internal error () that prevented it from fulfilling this request.
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(
at org.apache.jasper.compiler.ErrorDispatcher.javacError(
at org.apache.jasper.compiler.Compiler.generateClass(
at org.apache.jasper.compiler.Compiler.compile(
at org.apache.jasper.JspCompilationContext.compile(
at org.apache.jasper.servlet.JspServletWrapper.service(
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
at org.apache.jasper.servlet.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationDispatcher.invoke(
at org.apache.catalina.core.ApplicationDispatcher.doForward(
at org.apache.catalina.core.ApplicationDispatcher.forward(
at com.wrox.projsp.ch06.event.EventHandlerBase._dispatch(
at com.wrox.projsp.ch06.event.EventHandlerBase.forward(
at com.wrox.projsp.ch06.Controller.doPost(
at com.wrox.projsp.ch06.Controller.doGet(
at javax.servlet.http.HttpServlet.service(
Any help will be grately appreciated , please help me.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13018
That sort of looks like a request was made for a JSP file that doesn't exist. Are you sure that the reference in the frameset and the actual file name match?
Archana Annamaneni
Ranch Hand

Joined: Jan 29, 2003
Posts: 147
William Thank you for the reply,yes the file exists.
But I think it is somehow not pointing to that directory.
To test exactly what is happening I created a directory called jsp
under CATALINA_HOME\webapps\IS_Project\jsp
in that I created a file called welcome.jsp which contains
welcome home
and when I access the file as
http://localhost:8080/IS_Project/jsp/welcome.jsp I am getting the same error.
Before accessing a JSP page do I need to configure anything in the web.xml or somewhere else?
I agree. Here's the link:
subject: Professional JSP 2nd edition ch06 errors
It's not a secret anymore!