Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Large JSPs don't compile

Status
Not open for further replies.

bennetts

Programmer
Jan 10, 2002
1
US
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/HttpServletResponse;)V) 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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top