2011/4/7 Christopher Schultz <ch...@christopherschultz.net>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Nick,
>
> On 4/7/2011 11:20 AM, Nick Williams wrote:
>> Originally, I discovered some time ago that these JSP files would NOT
>> compile in Tomcat 5.5.25 or below, throwing the following error:
>>
>> "The code of method _jspService(HttpServletRequest,
>> HttpServletResponse) is exceeding the 65535 bytes limit."
>
> Huge JSPs are very sensitive to the exact version of Jasper (Tomcat's
> JSP engine) and the compiler (JDT) that you are using. Certain changes
> in the implementation of Jasper may or may not generate methods with too
> much bytecode, and certain versions of the compiler may have different
> bytecode optimizations that can be performed and might get you under the
> 64k method-size ceiling.
>

Note, that there are a number of options available to Jasper, that
affect code generation. It might be that some of them will help you.

Some options cause Jasper to generate less code, but longer textual
string, etc. (Might not be a silver bullet, because there are limits
on the length of strings and so on).

See comments in conf/web.xml and
http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html


>> None of my JSPs will compile in Tomcat 7.0.12. They throw the exact
>> same error. Looking at the source distribution, I discovered that
>> Tomcat 7.0.12 is using JDT compiler version 3.6.2, a much newer
>> version. So, either the problem has resurfaced in the JDT compiler,
>> or the problem was never in the JDT compiler at all, but was instead
>> in Tomcat.
>
> It's likely a combination of the two.
>
>> Any input? Like I said, I am going to fix these JSPs, but I would
>> like to know what the heck is going on

Anyway, the generated java files are present in the work folder. You
may look at what they are.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to