JSP Compilation Fails with the Error "PWC6199: Generated servlet error: code too large for try statement" on Oracle GlassFish Server (Doc ID 1408234.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version 9.1 and later
Information in this document applies to any platform.

Symptoms

When you deploy a web module or application that includes a web module that uses JSPs you see the following error in the server.log:

PWC6199: Generated servlet error: code too large for try statement

Changes

Potentially you have made changes to a JSP or have increased the size of files incorporated into the page using static includes, for example:

<%@ include file="date.jsp" %>


or perhaps you use a framework that generates dynamic code that has changed which is generating more code.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms