My 2 cents, the common phrase in all of these is the actual error text
'Unable to compile class'. If you search on this, it gives you the right
hits. I've found this to be very effective in troubleshooting when
searching archives.
Regards,
John
On Mon, 17 Sep 2001, Cor Hofman wrote:
> Date: Mon, 17 Sep 2001 20:28:05 +0200
> From: Cor Hofman <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat 4.0RC2, JSP examples do not work
>
> Craig,
>
> I am aware of that and I did consult the mail archives.
> Actually I ploughed through quite a lot of emails and
> tried several searches.
> I guess I did not come up with the "golden search phrase".
> For what its worth: "I sincerely apologize for the inconvenience".
>
I'm sorry I made an incorrect assumption about your behavior --
unfortunately, far too many users are not as diligent.
I suspect a search that includes "Explicit cast" or "handlePageException"
would have found this -- but you are right, finding the right search
phrase is more difficult than one might think.
> Kind regards,
>
> Cor.
>
Craig
> -----Original Message-----
> From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
> R. McClanahan
> Sent: Monday, September 17, 2001 20:00
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat 4.0RC2, JSP examples do not work
>
>
>
>
> On Mon, 17 Sep 2001, Cor Hofman wrote:
>
> > Date: Mon, 17 Sep 2001 19:56:11 +0200
> > From: Cor Hofman <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Subject: RE: Tomcat 4.0RC2, JSP examples do not work
> >
> > Craig,
> >
> > You are briljant ;-) Indeed, I had a servlet.jar flying around.
> > I would have never discovered this myself. You just made my day :-)
> > Many thanks,
> >
>
> I'm glad I could help.
>
> Now, can you help brighten my day too? This question comes up a lot on
> TOMCAT-USER, and you would have easily found this answer by looking in the
> mailing list archives. Several web sites that archive TOMCAT-USER are
> listed on
>
> http://jakarta.apache.org/site/mail2.html
>
> and the sites usually have search engines. There is a tremendous amount
> of useful information packed into the previous answers to user
> questions ...
>
> > Cor.
> >
>
> Craig
>
>
> > -----Original Message-----
> > From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
> > R. McClanahan
> > Sent: Monday, September 17, 2001 19:28
> > To: tomcat
> > Subject: Re: Tomcat 4.0RC2, JSP examples do not work
> >
> >
> > You've most likely got an old version of servlet.jar (or perhaps
j2ee.jar)
> > in your system extensions directory ($JAVA_HOME/jre/lib/ext). That will
> > mess up Tomcat 4, because these classes override the ones shipped with
> > Tomcat that conform to the new specifications.
> >
> > Craig
> >
> >
> > On Mon, 17 Sep 2001, Cor Hofman wrote:
> >
> > > Date: Mon, 17 Sep 2001 19:20:04 +0200
> > > From: Cor Hofman <[EMAIL PROTECTED]>
> > > Reply-To: [EMAIL PROTECTED]
> > > To: tomcat <[EMAIL PROTECTED]>
> > > Subject: Tomcat 4.0RC2, JSP examples do not work
> > >
> > > I just downloaded catalina and installed it.
> > > All runs well, expcept for the example JSP's.
> > > I always get the exception listed below.
> > > Anybody got a hint as to why?
> > > Hep is much appreciated, regards,
> > >
> > > Cor Hofman
> > >
> > > org.apache.jasper.JasperException: Unable to compile class for
> > >
> >
>
JSPnullH:\tomcat\jakarta-tomcat-4.0-rc2\work\localhost\examples\jsp\num\numg
> > > uess$jsp.java:156: 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:284)
> > > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:543)
> > > at
> > >
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> > > rvlet.java:176)
> > > at
> > >
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> > > va:188)
> > > at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > > FilterChain.java:247)
> > > at
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > > ain.java:193)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> > > va:243)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> > > 66)
> > > 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.ja
> > > va:215)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> > > 66)
> > > at
> > >
> >
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
> > > .java:472)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> > > 64)
> > > 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:2366)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
> > > )
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> > > 66)
> > > at
> > >
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> > > 64)
> > > 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
> > > :163)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> > > 66)
> > > 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:
> > > 1005)
> > > at
> > >
> >
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098
> > > )
> > > at java.lang.Thread.run(Thread.java:484)
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>