I have version 4.0 of
Tomcat and all my path settings are fine. I created a few JSPs and they were running fine until I decided to use a
Java Bean in my
JSP script. That's when I started getting
servlet errors. My HTML file, source file and class file for the Java bean and the .jsp file are all in the same directory (\tomcat\webapps\examples\jsp). I'm working on a Win 2000 box. This is the error message I get:
A Servlet Exception Has Occurred
org.apache.jasper.JasperException: Unable to compile class for JSPC:\tomcat\bin\..\work\localhost\examples\jsp\sanjubean1_jsp.java:57: Class org.apache.jsp.UserData not found.
UserData user = null;
^
C:\tomcat\bin\..\work\localhost\examples\jsp\sanjubean1_jsp.java:60: Class org.apache.jsp.UserData not found.
user= (UserData)
^
C:\tomcat\bin\..\work\localhost\examples\jsp\sanjubean1_jsp.java:65: Class org.apache.jsp.UserData not found.
user = (UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "UserData");
^
3 errors
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
Can someone please help me? I do not know what to do now.
Thank you,
Sanjeev