This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat error HTTP Status 500 -(JSP page error (Unable to compile class for JSP ) 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 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat error HTTP Status 500 -(JSP page error (Unable to compile class for JSP ) " Watch "Tomcat error HTTP Status 500 -(JSP page error (Unable to compile class for JSP ) " New topic
Author

Tomcat error HTTP Status 500 -(JSP page error (Unable to compile class for JSP )

kennedy udida
Greenhorn

Joined: Oct 13, 2000
Posts: 11
Hi All,
I am developing a web application using JavaBeans (MailBean.java) inside a JSP Page with Apache Tomcat/4.1.18-LE-jdk14 and J2sdk1.4 and i keep on having the error "Unable to compile class for JSP" see full error msg below.
Meanwhile My catalina_home directory is d:\Tomcat and it has no \lib subdirectory rather there is a \common\lib directory
However, My JSP code and JavaBean file (MailBean.java) are all stored in my subdirectory called \kenTest which is in the directory d:\Tomcat\webapps\ROOT directory, and I am using the ROOT context

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: 6 in the jsp file: /kenTest/feedback.jsp
Generated servlet error:
[javac] Compiling 1 source file
D:\Tomcat\work\Standalone\localhost\_\kenTest\feedback_jsp.java:46: cannot resolve symbol
symbol : class MailBean
location: class org.apache.jsp.feedback_jsp
MailBean mail = null;
^
An error occurred at line: 6 in the jsp file: /kenTest/feedback.jsp
Generated servlet error:
D:\Tomcat\work\Standalone\localhost\_\kenTest\feedback_jsp.java:48: cannot resolve symbol
symbol : class MailBean
location: class org.apache.jsp.feedback_jsp
mail = (MailBean) pageContext.getAttribute("mail", PageContext.PAGE_SCOPE);
^
An error occurred at line: 6 in the jsp file: /kenTest/feedback.jsp
Generated servlet error:
D:\Tomcat\work\Standalone\localhost\_\kenTest\feedback_jsp.java:51: cannot resolve symbol
symbol : class MailBean
location: class org.apache.jsp.feedback_jsp
mail = (MailBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "MailBean");
^
3 errors

PLEASE GUYS, HELP OUT ASAP.
Merci,


udida
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12869
    
    5
See the discussion in the JSP forum. Posting the same question in multiple forums AND sending me email produces confusion and irritation.
Bill
 
Don't get me started about those stupid light bulbs.
 
subject: Tomcat error HTTP Status 500 -(JSP page error (Unable to compile class for JSP )