You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tom Willson <tr...@salmonjack.com> on 2005/07/28 00:20:41 UTC

Compile error in v5 but not v4

Hello;

An application I'm trying to support runs without error on Tomcat 4.1.24 on
Windows and Tomcat 4.0.3 on HPUX.

When attempting to have it run on Tomcat 5.0.28 on Windows one of the very
large JSP pages fails to compile:

Jul 27, 2005 3:02:46 PM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Javac exception
Compile failed; see the compiler error output for details.

jsp.java:9924: code too large for try statement
    } catch (Throwable t) {

The code is large because of LOT of include statements. No doubt 9924 lines
is excessive. But, is there a setting that will allow this to run in Tomcat
5 or am I faced with refactoring this application?

Thanks,

Tom


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


Re: Compile error in v5 but not v4

Posted by Tim Funk <fu...@joedog.org>.
Tomcat5 uses jasper 2 which does much better optimizations of handlng custom 
tags. If you ahve a page with a lot of custom tags - it might not compile in 
tomcat 4.

One alternative (but with a performance penalty) is to split some of the JSP 
file into a run-time include (jsp:include).

-Tim

Tom Willson wrote:
> Hello;
> 
> An application I'm trying to support runs without error on Tomcat 4.1.24 on
> Windows and Tomcat 4.0.3 on HPUX.
> 
> When attempting to have it run on Tomcat 5.0.28 on Windows one of the very
> large JSP pages fails to compile:
> 
> Jul 27, 2005 3:02:46 PM org.apache.jasper.compiler.Compiler generateClass
> SEVERE: Javac exception
> Compile failed; see the compiler error output for details.
> 
> jsp.java:9924: code too large for try statement
>     } catch (Throwable t) {
> 
> The code is large because of LOT of include statements. No doubt 9924 lines
> is excessive. But, is there a setting that will allow this to run in Tomcat
> 5 or am I faced with refactoring this application?
> 

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