JSP fails to compile because method too large

When trying to access a jsp receive: _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit.

Traced it to a generated jsp.java file in the jboss server work directory.
It was a very large file with a that method consuming almost the entire file.

Fix the issue by altering the jbossDir/server/serverNameYouPicked/deploy/jboss-web.deployer/conf/web.xml



Add the following lines after org.apache.jasper.servlet.JspServlet


mappedfile
false


This makes the file smaller so it compiles.

Comments

Popular posts from this blog

Sites, Newsletters, and Blogs

Oracle JDBC ReadTimeout QueryTimeout

Locks held on Oracle for hours after sessions abnormally terminated by node failure