On Wed, 20 Nov 2002, Emmanuel Bridonneau wrote:

> Date: Wed, 20 Nov 2002 12:30:27 -0800
> From: Emmanuel Bridonneau <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List' (E-mail)"
>     <[EMAIL PROTECTED]>
> Subject: Illegal target of jump or branch w/Tomcat
>
> Some double talk,
> so I ran into this JVM exeption after switching from the "oh you're too expensive 
>for me" Weblogic to "you're great for a free software" JBoss.
> Turns out that Tomcat (used in conjunction w/JBoss) has a 64kb limitation whilst 
>generating the servlet code from a JSP.
> I intend to follow some suggestion I read and reduce the size of the .class files by:
>  - reducing the number of tags used by merging some functionalities at the expense 
>of a clean code
>  - putting some code outside of the jsp and including these snippets at run time
>
> It's a rather nasty and long undertaking.
> If anyone has encountered this type of exeption can you confirm this assumption and 
>what were the steps you took to overcome this limitation?
> Heard of a future Tomcat release that'll increase the 64kb limit?
> Thanks
>
> Configuration details:
> JBoss 2.4.4 bundle w/Tomcat 4.0.1
> Struts 1.0.2
>

Recent Tomcat 4.1.x releases include a completely rewritten "Jasper 2" JSP
Page Compiler.  Besides running custom tags a ***lot*** faster (very
visible on a page with lots of Struts tags), this compiler tries to work
around the 64k limit on method size by factoring out some nested chunks of
code into separate methods, thus arbitrarily increasing the maximum size
of a page.  This works, however, only if you have zero scriptlets -- but
that should not be a problem for well-designed JSP pages.

You'd have to check with the JBoss folks when they plan to integrate with
a 4.1 release of Tomcat.

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to