XML & Web services: Jsp compilation problem

  1. Jsp compilation problem (1 messages)

    I am getting following error when I run application my jsp file is too large Error is [ServletException in:/WEB-INF/jsp/personview/PersonViewSummary.jsp] Unable to compile class for JSP Generated servlet error: C:\DEVTOOLS\jboss-4.0.1\server\default\work\jboss.web\localhost\ehars\org\apache\jsp\WEB_002dINF\jsp\personview\PersonViewSummary_jsp.java:7284: code too large for try statement } catch (Throwable t) { ^ Generated servlet error: C:\DEVTOOLS\jboss-4.0.1\server\default\work\jboss.web\localhost\ehars\org\apache\jsp\WEB_002dINF\jsp\personview\PersonViewSummary_jsp.java:107: code too large for try statement try { ^ Generated servlet error: C:\DEVTOOLS\jboss-4.0.1\server\default\work\jboss.web\localhost\ehars\org\apache\jsp\WEB_002dINF\jsp\personview\PersonViewSummary_jsp.java:91: code too large public void _jspService(HttpServletRequest request, HttpServletResponse response) ^ 3 errors ' I am using jboss-4.0.1 Is there any solution Thank you
  2. This is common problem when your jsp page is quite large. Try removing unneccessary code including loggers , other statements or moving to other page Other way is you can configure the buffer size for holding compiled code...It's possible though its dependent on your container.