A couple of my JSP pages have become quite large and they no longer compile. The two files produce different errors:
org.apache.jasper.JasperException: Unable to compile class for JSPThe compiler has run out of stack space. Consider using the "-J-oss" command line option to increase the memory allocated for the Java stack.
and
java.lang.VerifyError: (class: jsp/casualty/_detail_jsp_1, method: _jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponseV) Illegal target of jump or branch
I have managed to reduce the size of both files so that they compile. But I am looking for a more permanent solution since the files could grow again. We use a lot of custom tags and these do add substantial chunks of code to the resulting class.
The -J-oss command line switch suggested in the first error message does not work. Does anybody have any ideas?
Thanks,
Ben
org.apache.jasper.JasperException: Unable to compile class for JSPThe compiler has run out of stack space. Consider using the "-J-oss" command line option to increase the memory allocated for the Java stack.
and
java.lang.VerifyError: (class: jsp/casualty/_detail_jsp_1, method: _jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponseV) Illegal target of jump or branch
I have managed to reduce the size of both files so that they compile. But I am looking for a more permanent solution since the files could grow again. We use a lot of custom tags and these do add substantial chunks of code to the resulting class.
The -J-oss command line switch suggested in the first error message does not work. Does anybody have any ideas?
Thanks,
Ben