File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Compilation Error

 
Shanmugam Muthukumarasamy
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Shanmugam Muthukumarasamy
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic