Tim,

Thanks for the suggestions. Infact, you are right about the out.print
statements. JASPER is creating new statements for each End Of Line and hence
the problem. But weblogic is combining all of them to a sizeable single
out.write statement.
However I got through the problem by using run-time Jsp Includes and you
have suggested this too. thanks.

Apache Developers should dig in deep to correct the problem in JASPER
itself!!!!!

Amar.
-----Original Message-----
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 5:40 PM
To: Tomcat Users List
Subject: Re: large class file generated..


Since a JSP is converted to java code, the jsp runs in a method called
_jspService (or a very similar name as dicated by the spec).

The java language itself has a constraint that no method may be larger than
the upper limit you are running into.

[I think jasper generates an out.print() for each "\n" combo instead of
combining them. I can't remember...] Anyhoo ... See
$TOMCAT_HOME/conf/web.xml
to turn on mapped files which (I think) moves that static content to another
file.

Otherwise, if possible split the file and use jsp:include to include content
if possible. It you are using @page include extensively - that would be a
problem too since that helps you file to become bloated very quickly.

-Tim

Amarnath Reddy wrote:
> BlankHi,
>
> Could anyone shed some light on this problem? I'm using Tomcat 4.1.18.
> JASPER is creating lots of lines for out.write statements and giving the
> following error. When compared to weblogic, the generated code after
> compiling the page is almost 12 times large. The same code works fine in
> weblogic.
>
> Any suggestions please?
>
> Thanks,


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


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

Reply via email to