• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Professional JSP 2nd edition ch06 errors

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
Bill
 
Archana Annamaneni
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
<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?
 
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic