>>Internal Servlet Error:
>>org.apache.jasper.JasperException: Unable to compile class for JSPerror: File /usr/local/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes/irina/IndustryGroupData.class does not contain type irina.IndustryGroupData as expected, but type IndustryGroupData. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
leads me to think that the .java source for IndustryGroupData doesn't include a 
package irina; 

as the first executable line of the file.

George McKinney, Developer
tantalus communications inc.
500-1122 Mainland Street
Vancouver, BC, Canada V6B 5L1
[EMAIL PROTECTED]

Direct  604.726.6753
Main    604.609.0700
Fax     604.609.0705
www.tantalus.com
"When eBusiness experience counts."

-----Original Message-----
From: Irina Pragin [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 1:57 PM
To: [EMAIL PROTECTED]
Subject: Starting with JSP and Beans. Please help

I was able to compile java bean to class, but I am not able to run JSP
 
JSP location: tomcat/webapps/examples/jsp/irina/getData.jsp
bean location: tomcat/webapps/examples/WEB-INF/classes/irina/IndustryGroupData(.java and .class)
 
This is how Bean is called from JSP:
<jsp:useBean id="getData" class="irina.IndustryGroupData" scope="session"/>
 
I get an error that irina.IndustryGroupData class is expected and is not found...
 
I suspect there are some vars that need to be set. I am just starting so I am using default setup. I was able to run all given examples.
When I run the JSP that I created I get the error 500. I will include error msg below. Please take a look. I am sure it's something very simple.
 
Thanks in advance,
Irina
 

Error: 500

Location: /examples/jsp/irina/getData.jsp

Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPerror: File /usr/local/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes/irina/IndustryGroupData.class does not contain type irina.IndustryGroupData as expected, but type IndustryGroupData. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002firina_0002fgetData_0002ejspgetData_jsp_3.java:69: Class irina.IndustryGroupData not found in type declaration.
                irina.IndustryGroupData getData = null;
                     ^
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002firina_0002fgetData_0002ejspgetData_jsp_3.java:72: Class irina.IndustryGroupData not found in type declaration.
                    getData= (irina.IndustryGroupData)
                                   ^
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002firina_0002fgetData_0002ejspgetData_jsp_3.java:77: Class irina.IndustryGroupData not found in type declaration.
                            getData = (irina.IndustryGroupData) Beans.instantiate(this.getClass().getClassLoader(), "irina.IndustryGroupData");
                                            ^
4 errors

Reply via email to