• Post Reply Bookmark Topic Watch Topic
  • New Topic

Professional JSP 2nd edition ch06 errors  RSS feed

Archana Annamaneni
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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(DefaultErrorHandler.java:120)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at com.wrox.projsp.ch06.event.EventHandlerBase._dispatch(EventHandlerBase.java:42)
at com.wrox.projsp.ch06.event.EventHandlerBase.forward(EventHandlerBase.java:30)
at com.wrox.projsp.ch06.Controller.doPost(Controller.java:90)
at com.wrox.projsp.ch06.Controller.doGet(Controller.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
Any help will be grately appreciated , please help me.
William Brogden
Author and all-around good cowpoke
Posts: 13078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!