While loading a jsp page in Tomcat , I get this error:
Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error:
The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit"
Anyone tell me how to overcome this:
Plz consider this things
a)this is the problem with tomcat,since weblogic is able to load the same page
b)the jsp file is generated dynamically from other server.So size varies,unpredictable ::
c)if u tell me to split the jsp file,plz anyone tell me how to do it(consider that jsp file is dynamic)
well the reason weblogic dont crash is that it might have set that limit to a larger number.
If my memory is still ok then I think there could be a jvm flag to set to not inforce jsp compiled size limit. You will have to dig veeeeeery deep into tomcat documentation.
Second if you can split jsp page, then look for the sections where you create html code in loops, and try to create separate jsp pages for such sections and just import them into your main jsp.
Hope this helps
But I suspect it is oracle related and has nothing to do much in tomcat..
Thats correct. The setting that I was referring to has to do with JVM for tomcat. If that is not an option then you will have to look into my second suggestion of breaking your jsp into several parts (<jsp:include>)and import them into the main page
Last edited by Khalid Ali; 07-25-2007 at 06:51 PM.