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 65K
Local fix
Customers need to be aware of the 65k limit and adjust their cod
e accordingly
Problem 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=true
Temporary fix
//wasdoc0/apars/pq56243/4.0.2
Comments
APAR information
APAR number PQ56243
Reported component name WEBSPHERE AE NT
Reported component ID 5630A2201
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2001-12-31
Closed date 2002-03-27
Last modified date 2002-11-13

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:
PQ56443

Modules/Macros
JSP          

Fix information
Fixed component name WEBSPHERE AE NT
Fixed component ID 5630A2201

Applicable component levels
R400 PSY    UP


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