tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McGrady <m...@michaelmcgrady.com>
Subject Re: Code Too Large for Try Statement in Catalina
Date Thu, 19 Aug 2004 19:55:24 GMT
Thanks, Peter,

I am using Tomcat 5.0.  What do you mean by "reorganize" my JSP?  Can I 
write the JSP with an include that pulls in the code?  What I have is a 
color pallet which needs to be in one piece and is 338 kb in size. 

Thanks, again,

Michael

Peter Lin wrote:

>the only way is to reorganize your jsp.  this is an old issue dating
>back quite a bit. are you using tomcat4 or 5?
>
>if you're using tc4, I would recommend upgrading to tc4.1.x or 5.x. 
>the original jasper generated code which would easily exceed the
>limit. the newer jasper2 which is used with tc4.1.x and 5.x does a
>much better job.
>
>peter
>
>On Thu, 19 Aug 2004 12:28:32 -0700, Michael McGrady
><mike@michaelmcgrady.com> wrote:
>  
>
>>I have the following error:
>>
>>org.apache.jasper.JasperException: Unable to compile class for JSP
>>
>>An error occurred at line: -1 in the jsp file: null
>>
>>Generated servlet error:
>>   [javac] Compiling 1 source file
>>
>>C:\crackwillow\work\Catalina\localhost\_\pallet_jsp.java:12934: code too large for
try statement
>>   } catch (Throwable t) {
>>     ^
>>C:\crackwillow\work\Catalina\localhost\_\pallet_jsp.java:30: code too large for try
statement
>>   try {
>>       ^
>>C:\crackwillow\work\Catalina\localhost\_\pallet_jsp.java:17: code too large
>> public void _jspService(HttpServletRequest request, HttpServletResponse response)
>>             ^
>>3 errors
>>
>>       org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
>>       org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
>>       org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
>>       org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
>>       org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
>>       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
>>       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>>       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>>       javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>       com.crackwillow.filter.GZIPFilter.doFilter(GZIPFilter.java:20)
>>
>>Is there anything to do?  I need this file to be a JSP file in Struts.
>>
>>Michael
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
>
>
>  
>



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


Mime
View raw message