'org.apache.jasper.JasperException Unable to compile class for JSP' or Workflow Actions Inaccessible
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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
One or both of the following conditions may exist:
- Workflow actions may be inaccessible
- JIRA applications may throw exceptions on screen
The following appears in the atlassian-jira.log
:
2007-12-06 10:55:05,327 http-8080-Processor20 ERROR [500ErrorPage] Exception caught in 500 page Unable to compile class for JSP
org.apache.jasper.JasperException: Unable to compile class for JSP
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:572)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
Cause
The Tomcat container caches .java
and .class
files generated by the JSP parser they 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
- Delete the contents of the
<JIRA_INSTALL>/work
folder if using standalone JIRA or <CATALINA_BASE>/work if using EAR/WAR installation . - Verify the user running the JIRA application process has Read/Write permission to the
<JIRA_INSTALL|CATALINA_BASE>/work
directory. - Restart the JIRA application container to rebuild the files.