  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Subject: JSP Compilation error | Subject: JSP Compilation error 2004-08-12 - By Ponnappan, Dasarathy Ellayavilli (Cognizant)
Back
Hi
This issue is caused due to your JSP size exceeding 64k limit imposed by JVM.
just use this option in your websphere app server to overcome this.
com.sun.tools.javac.main.largebranch=true in
Your server -> Process Definition -> Java Virtual Machine -> Custom Properties -> Click on Add. Once you do this and restart your web application your issue shoud typically be resolved. I hope you are trying this in solaris Rgds Dasarathy
-- --Original Message-- -- From: Sunil Kumar [mailto:sunil2.kumar@(protected)] Sent: Thursday, August 12, 2004 4:13 PM To: J2EEPATTERNS-INTEREST@(protected) Subject: JSP Compilation error
Hi all,
I know this is not the best forum to ask this question.
But this is where the best people are, so I though I can ask this question here.
We are on WebSphere Portal Server 4.2.1.
Some of our JSPs give the following error.
"method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax /servlet/http/HttpServletResponse;)V) Illegal target of jump or branch "
A little bit of googling revealed that if we give a parameter "com.sun.tools .javac.main.largebranch" as true in the JVM settings then this problem does not come.
And it did work, for at least two weeks we did not get this error, but now we have started getting this error again.
Any help would be highly appreciated.
Thanks in Advance Sunil Kumar Tata Consultancy Services Mailto: sunil2.kumar@(protected) Website: http://www.tcs.com
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e -mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=825435410-12082004><FONT face="Courier New" size=2>Hi
</FONT></SPAN></DIV> <DIV><SPAN class=825435410-12082004><FONT face="Courier New" size=2>This issue
is caused due to your JSP size exceeding 64k limit imposed by JVM.
</FONT></SPAN></DIV> <DIV><SPAN class=825435410-12082004><FONT face="Courier New" size=2>just use
this option in your websphere app server to overcome this. </FONT></SPAN></DIV> <DIV><SPAN class=825435410-12082004><FONT face="Courier New"
size=2><STRONG>com.sun.tools.javac.main.largebranch=true </STRONG>in
</FONT></SPAN></DIV> <DIV><SPAN class=825435410-12082004><FONT face="Courier New" size=2>Your server
-> Process Definition -> Java Virtual Machine -> Custom Properties
-> Click on Add.</FONT></SPAN></DIV> <DIV><SPAN class=825435410-12082004><FONT face="Courier New" size=2>Once you do
this and restart your web application your issue shoud typically be
resolved.</FONT></SPAN></DIV> <DIV><SPAN class=825435410-12082004><FONT face="Courier New" size=2>I hope you
are trying this in solaris</FONT></SPAN></DIV> <DIV><SPAN class=825435410-12082004><FONT face="Courier New"
size=2>Rgds</FONT></SPAN></DIV> <DIV><SPAN class=825435410-12082004><FONT face="Courier New"
size=2>Dasarathy</FONT></SPAN></DIV> <BLOCKQUOTE> <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
size=2><SPAN class=825435410-12082004><FONT
face="Courier New"> </FONT></SPAN>-- --Original
Message-- --<BR><B>From:</B> Sunil Kumar
[mailto:sunil2.kumar@(protected)]<BR><B>Sent:</B> Thursday, August 12, 2004 4:13
PM<BR><B>To:</B> J2EEPATTERNS-INTEREST@(protected)<BR><B>Subject:</B> JSP
Compilation error<BR><BR></FONT></FONT></DIV><BR><FONT face=sans-serif
size=2>Hi all,</FONT> <BR><BR><FONT face=sans-serif size=2>I know this is not
the best forum to ask this question.</FONT> <BR><FONT face=sans-serif
size=2>But this is where the best people are, so I though I can ask this
question here.</FONT> <BR><BR><FONT face=sans-serif size=2>We are on WebSphere
Portal Server 4.2.1.</FONT> <BR><FONT face=sans-serif size=2>Some of our JSPs
give the following error.</FONT> <BR><FONT face=sans-serif size=2>"method:
_jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http /HttpServletResponse;)V)
Illegal target of jump or branch "</FONT> <BR><BR><FONT face=sans-serif
size=2>A little bit of googling revealed that if we give a parameter
"com.sun.tools.javac.main.largebranch" as true in the JVM settings then this
problem does not come.</FONT> <BR><BR><FONT face=sans-serif size=2>And it did
work, for at least two weeks we did not get this error, but now we have
started getting this error again.</FONT> <BR><BR><FONT face=sans-serif
size=2>Any help would be highly appreciated. </FONT><BR><BR><FONT
face=sans-serif size=2>Thanks in Advance<BR>Sunil Kumar<BR>Tata Consultancy
Services<BR>Mailto: sunil2.kumar@(protected)<BR>Website:
http://www.tcs.com</FONT></BLOCKQUOTE></BODY></HTML>
<table><tr><td bgcolor=#ffffff><font color=#000000>This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.<br>If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. <br>Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly <br>prohibited and may be unlawful .<br><br> Visit us at http://www.cognizant.com<br></font></td></tr></table> ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |