JIRA Won't Start Due to java.lang.NoClassDefFoundError org.apache.log4j.Appender

お困りですか?

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

コミュニティに質問

症状

JIRA fails to start due to a NoClassDefFoundError for org/apache/log4j/Appender.

atlassian-jira.log に次のエラーが返される。

java.lang.NoClassDefFoundError: org/apache/log4j/Appender
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

原因

This typically happens because some classes are missing from the $JIRA_INSTALL/lib/ directory, in this case the log4j class. These classes are jar files which can be checked through file system.

ソリューション

  1. Verify if the JAR exists within the $JIRA_INSTALL/lib directory.
  2. If not, download the JIRA version from our downloads archive (this will either be a tarball or a ZIP, depending on the OS. Do not download the installer version).
  3. Extract it into a temporary directory and add in the missing JAR file from the downloaded archive into the $JIRA_INSTALL/lib directory.
  4. Jira を起動します。

最終更新日: 2024 年 2 月 29 日

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

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