Legacy Knowledge Base
Published Jul. 2, 2025

JSP Compilation Errors when Deploying Liferay Portal 6.2 on Apache Tomcat 7.0.75 (Or Higher)

Written By

Justin Choi

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

This article documents a known issue when administrators deploy Liferay Portal 6.2 EE on Apache Tomcat 7.0.75 (or higher). An error will appear in the console (see truncated log below):

An error occurred at line: [430] in the generated java file: [/home/ugurcan/liferay/bundles/ee-6.2.x/tomcat-7.0.75/work/Catalina/localhost/_/org/apache/jsp/html/common/themes/portlet_jsp.java]
The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit

Stacktrace:
	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
	at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:490)

Feb 13, 2017 4:30:26 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.ClassNotFoundException: org.apache.jsp.html.common.themes.portlet_jsp
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)

16:30:26,920 ERROR [RuntimePageImpl-1][PortletRequestDispatcherImpl:131] org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.html.common.themes.portlet_jsp
org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.html.common.themes.portlet_jsp
	at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:177)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:376)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)

The issue is with the Jasper jar which is responsible for compiling JSP files. A newer version of Jasper was first released in Tomcat 7.0.75;  see Apache's documentation article 60356.

Resolution

Fixed in liferay-fixpack-portal-148-6210

Alternative Solution: Replace tomcat-7.0.75/lib/jasper.jar with an older version (for example, copy the jar file from tomcat-7.0.62).

Did this article resolve your issue ?

Legacy Knowledge Base