Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class not found problem

Status
Not open for further replies.

newbiepg

Programmer
Nov 6, 2002
181
IN
I have a problem using tomcat 4.06, I cannot access any class files from jsp pages. I am using windows 2000

I have created a class file and placed it in
webapps/examples/WEB-INF/classes folder

The jsp files that access this class are in webapps/examples/practice (I created the folder practice)
folder

When I run the jsp file acessing properties of the class file, I am getting this error

An error occurred at line: 1 in the jsp file: /practice/SaveName.jsp

Generated servlet error:
C:\tomcat406\work\Standalone\localhost\examples\practice\SaveName$jsp.java:56: Class org.apache.jsp.UserData not found.
UserData user = null;

An error occurred at line: 1 in the jsp file: /practice/SaveName.jsp

Generated servlet error:
C:\tomcat406\work\Standalone\localhost\examples\practice\SaveName$jsp.java:59: Class org.apache.jsp.UserData not found.
user= (UserData)
^


An error occurred at line: 1 in the jsp file: /practice/SaveName.jsp

Generated servlet error:
C:\tomcat406\work\Standalone\localhost\examples\practice\SaveName$jsp.java:64: Class org.apache.jsp.UserData not found.
user = (UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "UserData");


This is the first time I am using classes in tomcat so any help will be welcome
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top