aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Professional JSP 2nd edition ch06 errors" Watch "Professional JSP 2nd edition ch06 errors" New topic
Author

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
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
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
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
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?
Bill
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
<html>
<body>
welcome home
</body>
</html>
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: http://aspose.com/file-tools
 
subject: Professional JSP 2nd edition ch06 errors