title: Generated servlet error:|code too large for try statement in jetty
body: <p>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.</p>
  
  <blockquote>
    <p>PWC6199: Generated servlet error:|code too large for try statement</p>
  </blockquote>
  
  <p>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.
  <a href="https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java">&quot;Code too large&quot; compilation error in Java</a></p>
  
  <p>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. </p>
  
  <p>We are using Jetty 9.2</p>