The problem as you no doubt know is that the jsp compile is not finding MechanicBean.class. You need to make sure that MechanicBean is in a package as otherwise the jsp compiler will look for classes in the default package which for the jsp compiler is org.apache.jsp.� Just add (I'll use your email address for uniqueness) package com.hotmail.ttum; to the top of the MechanicBean.java file and then in the jsp file go for com.hotmail.ttum.MechanicBean � Make sure that MechanicBean.class is then put in [TomcatRoot]\webapps\[your webapp]\WEB-INF\classes\com\hotmail\ttum\� � Hope this helps �
Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 PS to write to the list the mailing address is HYPERLINK "mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED] see my CC to this letter -----Original Message----- From: Tuangporn Khawcharoenporn [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 01, 2002 4:39 AM To: [EMAIL PROTECTED] Subject: Tomcat and JSP problem Hi Sorry to email you directly. I saw your posted message on Tomcat-User list. I have already subscribed to the list but I don't know how to post the message. Would you please suggest me? I also have one critical problem with my JSP project that I would appreciate to have an idea from you. I'm trying to solve this problem for my JSP project for many days. I'm using Tomcat 4.0.3 and jdk1.3.1. Everything I set for PATH or symtem variables are working fine with Servlet. The application I am developing is to use JSP with JavaBeans. I use the bean class called MechanicBean and use MechanicInfo.jsp to instantiate the bean class with this tag, <?xml:namespace prefix = jsp /> However, after running the program, the error shown in the browser as type: Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception: org.apache.jasper.JasperException: Unable to compile class for JSP An error occured at line 9 in the jsp file: /MechanicInfo.jsp Generated servlet error: D:\tomcat4\work\localhost\Mechanic\MechanicInfo$jsp.jsp.java:60: Class org.apache.jsp.MechanicBean not found. ....... ....... I was wondering what is the source of the problem. I have already defined the compiled bean class to use. Is this the problem of Tomcat 4.0.3 or the application itself? How to solve this problem? I would very much appreciate your suggestion. Thank you. Tum ******************************** Tuangporn Khawcharoenporn (Tum) ******************************** _____ MSN Photos is the easiest way to share and print your photos: HYPERLINK "http://g.msn.com/1HM1ENTH/c156??PI=44361"Click Here --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.384 / Virus Database: 216 - Release Date: 21/08/02
