We have an application which is currently deployed on JBoss where it works fine. We are now trying to deploy the same on Jetty. But while accessing one of the JSPs we get the below exception.
PWC6199: Generated servlet error:|code too large for try statement
While looking for a possible solution to this problem, I came upon this stackoverflow question which says that it has to do with the size of the Java class. "Code too large" compilation error in Java
But this JSP compiles fine in JBoss. Is there any configuration in jetty that would compile the JSP in a different way (smaller class size) and help solve this issue? As of now, the only solution I can think of is to refactor the JSP into smaller JSPs with dynamic reports.
We are using Jetty 9.2