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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]