After upgrading our application environment to Oracle WebLogic Server 12.2.1.4.0, we started encountering JSP compilation errors that were not present in the previous WebLogic version. The issue occurs during JSP compilation or at runtime when the server attempts to load a JSP page.
weblogic.servlet.jsp.CompilationException: Failed to compile JSP /xyz.jsp
[jspService() method exceeds 65535 bytes limit]
Environment Details:
WebLogic Server Version: 12.2.1.4.0
JDK Version: 1.8.0 (64-bit)
Operating System: Linux
Java VM: HotSpot 64-Bit Server VM
JSP Compiler: Eclipse JDT
Post-upgrade, the JSP compiler is throwing a jspService() method size limit error. The same JSPs compiled successfully on the previous WebLogic version. This issue typically occurs when the generated servlet code for a JSP exceeds the Java method size limit (64 KB). It may also be influenced by differences in JSP compilation behavior between WebLogic’s built-in JSP compiler and the Eclipse JDT compiler introduced in newer versions.
Verified that the JDK and WebLogic versions are compatible.
Enabled the Eclipse JDT compiler by setting the following system property in the startup script:
-Dorg.apache.jasper.compiler.useEclipseCompiler=true
Ensured all required JSP-related JARs (e.g., com.oracle.weblogic.jsp.jar) are present in the classpath.
Despite these configurations, the issue persists with large JSPs containing complex scriptlets or embedded Java code.
Has anyone encountered a similar issue after upgrading to WebLogic 12.2.1.4.0?