code of a method longer than 65536 bytes
843835Feb 5 2002 — edited Feb 6 2002I just moved my web application (jsp/servlets, no EJB) from apache tomcat to Oracle 9iAs Container for J2EE (OC4J). Everything is working fine except one jsp file, called "EditTmpForm.jsp". Basically, this jsp file is used to update existing records, so it needs to first retrieve the data from the database by using the primary keys. I used a java bean to handle the JDBC/SQL code and plugged that bean into the jsp file. The jsp works fine on tomcat, but when I run it on OC4J, I got the following error:
500 Internal Server Error
Error parsing JSP page /pirs/jsp/EditTmpForm.jsp
Error creating jsp-page instance: java.lang.ClassFormatError: jspPage19jsp_EditTmpForm.jsp (code of a method longer than 65536 bytes)
Why does it give me this error? 65536 bytes is only 64k, which can be stored in a floppy disk.
Thank you very much if you can give me some idea why this occurs.
James