System plugins fail to load due to NoClassDefFoundError

お困りですか?

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

コミュニティに質問

症状

JIRA fails to fully load system plugins.  Once JIRA is started, it is possible to enable some plugins (or specific plugin modules) through the Plugin Manager

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

2012-08-13 12:02:42,299 Spring executor 4 ERROR [plugin.osgi.factory.OsgiPlugin] Unable to start the Spring context for plugin com.atlassian.streams.core
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle://80.0:0/META-INF/spring/atlassian-plugins-host-components.xml]; nested exception is java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange

診断

May have upgraded from JIRA 4.2 or prior.

原因

OSGI plugin paths are over-written from the Java startup parameters

回避策

Enable the disabled plugins/modules through the Plugin Manager after each startup.

ソリューション

Remove the defined Java startup parameters:

  • Explanation of how to modify the parameters here: Setting Properties and Options on Startup
  • Below is a sample of what you may modify on Linux. You can check for the arguments for the corresponding locations in Windows

Linux

  1. Modify the Java startup file: <jira-install>/bin/setenv.sh
  2. Check for any arguments that may alter the OSGI framework:
    1. Default locations to set arguments:
      1. JVM_SUPPORT_RECOMMENDED_ARGS
      2. JVM_REQUIRED_ARGS
      3. JVM_EXTRA_ARGS
    2. The actual parameters may look something like this:

      -Datlassian.org.osgi.framework.bootdelegation=

 

Last modified on Mar 30, 2016

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

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