wood burning stoves 2.0*
The moose likes JSP and the fly likes JSP Compilation Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Compilation Error" Watch "JSP Compilation Error" New topic
Author

JSP Compilation Error

Shanmugam Muthukumarasamy
Ranch Hand

Joined: Jan 11, 2003
Posts: 83
I am getting the following issue, when I try to run my application. It seems like, I have exceeded the limit of 64KB. Is it the reason ?

Any solutions ???

Thanks in Advance,
Shan.


[ServletException in:/pages/claims/Passenger.jsp] JSPG0059E: Unable to compile class for JSP C:\IBM\css_collision4\.metadata\.plugins\com.ibm.etools.server.core\tmp1\cache\localhost\Default_Server\css\cssWeb.war\pages\claims\_Passenger_jsp_10.java:23: JAVAC MESSAGE FILE IS BROKEN: key=javac.err.branch.too.big, arguments=null, null, null public class _Passenger_jsp_10 extends HttpJspBase { ^ 1 error ' org.apache.jasper.JasperException: JSPG0059E: Unable to compile class for JSP C:\IBM\css_fnol_collision4\.metadata\.plugins\com.ibm.etools.server.core\tmp1\cache\localhost\Default_Server\css\cssWeb.war\pages\claims\_Passenger_jsp_10.java:23: JAVAC MESSAGE FILE IS BROKEN: key=javac.err.branch.too.big, arguments=null, null, null public class _Passenger_jsp_10 extends HttpJspBase { ^ 1 error at org.apache.jasper.compiler.Compiler.handleCompile(Compiler.java:482) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:180) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:828) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:251) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:279) at org.apache.jasper.runtime.JspServlet.serviceJspFile

[ September 26, 2005: Message edited by: Shanmugam Muthukumarasamy ]
[ September 26, 2005: Message edited by: Bear Bibeault ]

SJCP 1.4<br />SCWCD 1.4<br />SCEA
Shanmugam Muthukumarasamy
Ranch Hand

Joined: Jan 11, 2003
Posts: 83
this may be helpful
for websphere 4.0

add a new system property with
name = com.sun.tools.javac.main.largebench
value= true

apply and restart .

Thanks,

Srinivas Bandi
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I believe 64K is the limit for a try/catch block.

The "best" thing to do would be to refactor your project so you don't need that much code in one JSP. If it's not feasable to do that right now, a short term fix would be to break some of the functionality into jsp:include pages.
If you have a lot of CSS or Javascript code in this page, you might also consider moving it to separate files as well.

That you've hit that limit, should set off some warning flags though.
[ September 26, 2005: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Compilation Error
 
Similar Threads
Using Java Classes in JSP
Have problem when I run jsp on server.
jre compiling error
Unable to compile class for JSP
Struts: Branch is too large, Internal restriction.