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 afterorg.apache.jasper.servlet.JspServlet
mappedfile
false
This makes the file smaller so it compiles.
Traced it to a generated jsp.java file in the jboss server
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
This makes the file smaller so it compiles.
Comments