I'm running Tomcat 5.0.19, under webapps I've a folder called MyApp containing my jsp files and beans.
location of my files:
%CATALINA_HOME%\webapps\MyApp\clock.jsp
%CATALINA_HOME%\webapps\MyApp\Web-inf\classes\TheBean\ClockBean.java
my setting:
set JAVA_HOME=C:\j2sdk1.4.2_04
set CATALINA_HOME=C:\jakarta-tomcat-5.0.19
set PATH=%PATH%;C:\jdk1.4.2_04\bin;
I try to use the ClockBean in my clock.jsp but i got the error from tomcat, what's the problem? btw, my OS is windows 98, would that be the cause of the problem?
<<<<<<<<<<<<<<<<<<< ERROR REPORT FROM TOMCAT >>>>>>>>>>>>>>>>>>>>>>
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: 2 in the jsp file: /clock.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\MyApp\org\apache\
js p\clock_jsp.java:6: package TheBean does not exist
import TheBean.ClockBean;
^
C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\MyApp\org\apache\
js p\clock_jsp.java:45: package TheBean does not exist
TheBean.ClockBean clock = null;
^
An error occurred at line: 2 in the jsp file: /clock.jsp
Generated servlet error:
C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\MyApp\org\apache\
js p\clock_jsp.java:47: package TheBean does not exist
clock = (TheBean.ClockBean) _jspx_page_context.getAttribute("clock", PageContext.SESSION_SCOPE);
^
An error occurred at line: 2 in the jsp file: /clock.jsp
Generated servlet error:
C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\MyApp\org\apache\
js p\clock_jsp.java:49: package TheBean does not exist
clock = new TheBean.ClockBean();
^
4 errors
org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass( Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:458)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:439)
org.apache.jasper.JspCompilationContext.compile(
Js pCompilationContext.java:553)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
note The full stack trace of the root cause is available in the Tomcat logs.
<<<<<<<<<<<<<<<<<<< END OF ERROR REPORT FROM TOMCAT >>>>>>>>>>>>>>>>>>>>>>