Unable to Compile Class for JSP

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

Catalina.log file shows the following error:

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:

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

原因

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

  1. STOP confluence
  2. Delete the <CONFLUENCE_INSTALL>/work folder (or <CATALINA_BASE/work if not using a Standalone install).
  3. Verify the user running the CONFLUENCE application process has Read/Write permission to the <CONFLUENCE_INSTALL>/work directory.
  4. Restart Confluence to rebuild the files.

Resolution for Crowd

  1. STOP Crowd
  2. Delete the <CROWD_INSTALL>/apache-tomcat/work/ folder (or <CATALINA_BASE/work if not using a Standalone install).
  3. Verify the user running the CROWD application process has Read/Write permission to the <CROWD_INSTALL>/apache-tomcat/work directory.
  4. Restart Crowd to rebuild the files.

Last modified on Mar 31, 2022

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.