System plugins fail to load due to NoClassDefFoundError

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

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

The following appears in the 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

Diagnosis

May have upgraded from JIRA 4.2 or prior.

Cause

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

Workaround

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

Resolution

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

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.