You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Wall <d....@computer.org> on 2005/06/03 22:31:19 UTC

JSP too big to compile?

We have a web page that contains many business documents laid out one 
after the other so a user can just click print and have all of them 
print together (with a stylesheet that starts each contract on its own 
printed page). 

But we seem to be having an error that the generated servlet code is too 
big because of service method's try block is too long.

Is there anything I can tweak to allow this to be bigger for the java 
compiler, or is this just a limit of Java in general?

Thanks,
David


Generated servlet error:
    [javac] Compiling 1 source file
    [javac] 
/home/tomcat/jakarta-tomcat-4.1.30/work/Standalone/localhost/app/application_jsp.java:8946: 
compiler message file broken: 
key=compiler.err.compiler.err.limit.code.too.large.for.try.stmt 
arguments=null, null, null, null, null, null, null
    [javac]     } catch (Throwable t) {
    [javac]       ^
    [javac] 
/home/tomcat/jakarta-tomcat-4.1.30/work/Standalone/localhost/app/application_jsp.java:1118: 
compiler message file broken: 
key=compiler.err.compiler.err.limit.code.too.large.for.try.stmt 
arguments=null, null, null, null, null, null, null
    [javac]     try {
    [javac]         ^

Re: JSP too big to compile?

Posted by Joe Plautz <jo...@customcall.com>.
You are actually limited by Java. I can't recall the actual size off 
hand, but a method can only be so big.

 From what I remember, it has something to do with server side includes 
vs jsp includes. We ended up doing some pretty nasty stuff by 
conditionally doing a server side include. I can't really remember much 
more than that it was several years ago.

David Wall wrote:
> We have a web page that contains many business documents laid out one 
> after the other so a user can just click print and have all of them 
> print together (with a stylesheet that starts each contract on its own 
> printed page).
> But we seem to be having an error that the generated servlet code is too 
> big because of service method's try block is too long.
> 
> Is there anything I can tweak to allow this to be bigger for the java 
> compiler, or is this just a limit of Java in general?
> 
> Thanks,
> David
> 
> 
> Generated servlet error:
>    [javac] Compiling 1 source file
>    [javac] 
> /home/tomcat/jakarta-tomcat-4.1.30/work/Standalone/localhost/app/application_jsp.java:8946: 
> compiler message file broken: 
> key=compiler.err.compiler.err.limit.code.too.large.for.try.stmt 
> arguments=null, null, null, null, null, null, null
>    [javac]     } catch (Throwable t) {
>    [javac]       ^
>    [javac] 
> /home/tomcat/jakarta-tomcat-4.1.30/work/Standalone/localhost/app/application_jsp.java:1118: 
> compiler message file broken: 
> key=compiler.err.compiler.err.limit.code.too.large.for.try.stmt 
> arguments=null, null, null, null, null, null, null
>    [javac]     try {
>    [javac]         ^
> 

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