tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pearsall, Kyle" <Kyle.Pears...@cda.canon.com>
Subject RE: JasperException: Unable to compile class for JSP
Date Thu, 20 Jun 2002 16:16:26 GMT
I'm not convinced yet that I've done everything I can with Tomcat yet to get my JSPs to work
properly.  The error below (and others like it from different JSP pages) don't appear in other
web servers, such as Weblogic 5.1.  The same JSPs compile properly on these other web servers.
 I've made no modifications to the code.  I'm sure numerous exceptions will appear over many
JSP pages on Tomcat as it is now.  What I am wondering is whether there may be a way to customize
tomcat with a different JSP compiler.

I do admit I am a newbie at this...there is alot to Tomcat and JSP I don't understand yet.

Your help is most appreciated.

Thank you,

Kyle P.

-----Original Message-----
From: Andrew Conrad [mailto:andrewconrad@msn.com]
Sent: Wednesday, June 19, 2002 5:27 PM
To: 'Tomcat Users List'
Subject: RE: JasperException: Unable to compile class for JSP


I think your answer is right in the output:

"Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception"

instead of:
--
if (pageContext != null) pageContext.handlePageException(t);
--

Try this:
--
if (pageContext != null) pageContext.handlePageException((Exception) t);
--


-Andrew Conrad



-----Original Message-----
From: Pearsall, Kyle [mailto:Kyle.Pearsall@cda.canon.com] 
Sent: Wednesday, June 19, 2002 8:00 PM
To: Tomcat (E-mail)
Subject: JasperException: Unable to compile class for JSP

Thank you for the help with Tomcat and SQL server 2000.

Now I get a different problem.  The jsp files can't compile correctly at
runtime.  This code works properly on Weblogic 5.1.  Do I need to fix
something in Tomcat?  Any suggestions?

Thank you,

Kyle P.

org.apache.jasper.JasperException: Unable to compile class for JSP
D:\TOMCAT\work\Standalone\localhost\dhimaging\jsp\Albums$jsp.java:689:
Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception.
            if (pageContext != null) pageContext.handlePageException(t);
                                                                     ^
1 error


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message