This is an old message but an important issue.

The kind of problem mentioned below will occur if you have an old version
of servlet.jar in your Java extensions directory
($JAVA_HOME/jre/lib/ext) or if you've modified the standard Tomcat 4
startup files or overall directory organization.

Craig McClanahan


On Sun, 8 Jul 2001 [EMAIL PROTECTED] wrote:

> Hi there
> i downloaded Tomcat 4.0 b5 and installed it on my PC running win98. it works 
> fine but for some reason it does not run the jsp examples in the local host 
> or any other jsp pages i created, even though it runs the servlets ok. i get 
> the error shown at the end of this mail. But the strange thing is though, 
> even though i get this error, when i view the page source code using netscape 
> it shows the result of the jsp processing, for example when i tried the Date 
> jsp example i got the error message but the page source contained the date 
> resulted from the jsp. i installed the JDK 1.3 and set all the paths 
> required... i had tomcat 3.2.2 which was running perfectly, but i need tomcat 
> 4.0 as it has support for WAP technology which i need for my WAP research 
> project. Can u please help me... i do need it urgently...
> thanx alot
> Tim
> 
> here is the error message:
> -------------------------------------------
> 
> A Servlet Exception Has Occurred
> 
> org.apache.jasper.JasperException: Unable to compile class for 
> JSPC:\Tomcat\bin\..\work\localhost\examples\jsp\dates\date_jsp.java:168: 
> Incompatible type for method. Explicit cast needed to convert 
> java.lang.Throwable to java.lang.Exception.
>            if (pageContext != null) pageContext.handlePageException(t);
>                                                                     ^
> 1 error
> 
>     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
>     at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:523)
>     at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServ
> 
> let.java:175)
>   at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java
> 
> :187)
>   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
>     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
> 
> lterChain.java:254)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
> 
> n.java:194)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
> 
> :255)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566
> )
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java
> 
> :225)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566
> )
>   at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.j
> 
> ava:472)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564
> )
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252)
>   at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566
> )
>   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
>     at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564
> )
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:1
> 
> 63)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566
> )
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:87
> 
> 5)
>   at 
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952)
>   at java.lang.Thread.run(Thread.java:484)
> 

Reply via email to