My system is a Windows XP PC running Tomcat 5.5.8
 
I have been able to compile and install my Tomcat project.
When I visit the URL corresponding to my Tomcat project I see the "starting" page I expected to see.
When I click on the "SUBMIT" button on the form on the main page, I receive the following error message from Tomcat :
 
 ========================================

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: 8 in the jsp file: /logon.jsp
Generated servlet error:
DatabaseBean cannot be resolved or is not a type

An error occurred at line: 8 in the jsp file: /logon.jsp
Generated servlet error:
DatabaseBean cannot be resolved or is not a type

An error occurred at line: 8 in the jsp file: /logon.jsp
Generated servlet error:
DatabaseBean cannot be resolved or is not a type
 ==================================================
 
The contents of the named JSP file is as follows :
 
<%@ page language="java" contentType="text/html" %>
<%-- This JSP is to test my own personal Bean/class. --%>
<html>
<head>
<title>Logon</title>
</head>
<body>
<jsp:useBean id="foobar" scope="session" class="DatabaseBean" />
<jsp:setProperty name="foobar" property="*" />
 
<%-- First call the method that generates the data --%>
<%
 foobar.user_logon();
%>
 
<%-- Now call the method that retrieves the generated data --%>
<%= foobar.getHtmldata() %>
 
</body>
</html>
====================================================
 
I checked the directory structure where my Tomcat project was deployed and I found that my class file DatabaseBean.class file was located under the WEB-INF\classes sub-directory as expected. So why am I receiving the error message from Tomcat ? Is there something I need to do to set the value for CLASSPATH ?
 
 
 
*************************
 
Barry Kimelman
Toronto, Ontario, Canada
email :  [EMAIL PROTECTED] , [EMAIL PROTECTED]

Reply via email to