aspose file tools*
The moose likes Websphere and the fly likes unable to compile jsp  = code too large for try statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "unable to compile jsp  = code too large for try statement" Watch "unable to compile jsp  = code too large for try statement" New topic
Author

unable to compile jsp = code too large for try statement

Chris Skinner
Greenhorn

Joined: Jan 23, 2002
Posts: 23
Hi,
Has anybody every seen this error from the jsp compiler for large jsps?


code too large for try statement
org.apache.jasper.JasperException: Unable to compile class for JSP

I thought is was the 32k limit problem but we're at 5.1.1.6 so that should have been fixed.

Thanks
Chris


Christopher Skinner<br />SCJP2 1.4<br />SCWCD (in training)
Chris Skinner
Greenhorn

Joined: Jan 23, 2002
Posts: 23
I figured it out. We actually broke the 64k size limit on java methods. Solution was to break up the page into separate files and include them in the main page.
Chris
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3716
    
    5

Wow... those must be big jsps...


My Blog: Down Home Country Coding with Scott Selikoff
Steve Jiang
Ranch Hand

Joined: May 17, 2004
Posts: 107
I met the same issue, make the jsp file into several small files may not be feasible for me becuase of release limiation.

And the same jsp file is compiled in other releases, I guess there are some configuration for jsp compilation which can be set . is there any suggestions for the issue?

Thanks,

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to compile jsp = code too large for try statement