PQ56243: JSP'S FAIL TO COMPILE WITH BRANCH TOO LARGE EXCEPTION | |||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||
APAR status Closed as program error. Error description Error while compiling large jsp's.The jsp has many includes and loads many tag libraries.The error thrown is a branch to large exception. The generated method is exceeding the JDK method limit of 65KLocal fix Customers need to be aware of the 65k limit and adjust their cod e accordinglyProblem summary **************************************************************** * USERS AFFECTED: WebSphere Application Server developers * * using jsp's and custom tags. * **************************************************************** * PROBLEM DESCRIPTION: During compilation of large jsp files, * * BranchTooLargeException is thrown by * * java compiler. * **************************************************************** * RECOMMENDATION: * **************************************************************** A jsp page containing a large number of custom tags and static includes is generating source code greater than the internal java compiler can handle. During compilation of the generated .java file, the compiler is throwing a BranchTooLargeException.Problem conclusion WebSphere's implementation of JSP from Tomcat was not taking into account the jdk 1.3 increase from 16K to 32K branches for internal compilation of java files. Code was modified to add a jvm system parameter that leverages the newer 32K branch mechanism for jsps that throw BranchTooLarge exceptions. To enable, developer needs to add a jvm system property... name=com.sun.tools.javac.main.largebranch value=trueTemporary fix //wasdoc0/apars/pq56243/4.0.2Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: PQ56443 Modules/Macros
|
Document Information |
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ56243
IBM Group: Software Group
Modified date: Nov 13, 2002
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.