Unable to Compile Class for JSP
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Catalina.log file shows the following error:
1
2
3
4
5
Jun 21, 2010 8:14:18 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 156 in the jsp file: /500page.jsp
Type mismatch: cannot convert from StackTraceElement to String
If you are having this issue with Crowd, you may find the following error on atlassian-crowd.log:
1
2
2012-08-01 21:16:03,891 http-8095-2 ERROR [500ErrorPage] Exception caught in 500 page Unable to compile class for JSP
org.apache.jasper.JasperException: Unable to compile class for JSP
Cause
The Tomcat container caches .java and .class files generated by the JSP parser, which are used by the web application. Sometimes these get corrupted or cannot be found. This may occur after a patch or upgrade that contains modifications to JSPs.
Resolution for Confluence
STOP confluence
Delete the
<CONFLUENCE_INSTALL>/work
folder (or<CATALINA_BASE/work
if not using a Standalone install).Verify the user running the CONFLUENCE application process has Read/Write permission to the
<CONFLUENCE_INSTALL>/work
directory.Restart Confluence to rebuild the files.
Resolution for Crowd
STOP Crowd
Delete the
<CROWD_INSTALL>/apache-tomcat/work
/ folder (or<CATALINA_BASE/work
if not using a Standalone install).Verify the user running the CROWD application process has Read/Write permission to the
<CROWD_INSTALL>/apache-tomcat/work
directory.Restart Crowd to rebuild the files.
Was this helpful?