JIRA Crashes or is unable to start properly due to "OSGi plugins cannot be deployed via the classpath"

Still need help?

The Atlassian Community is here for you.

Ask the community

 

Symptoms

The following or similar stacktrace appears in the atlassian-jira.log:

2014-04-24 12:14:22,543 localhost-startStop-1 WARN      [atlassian.jira.startup.JiraStartupLogger] 

********************************************************************************************************************************************************************************************************
The following plugins failed to load:
JIRA Gantt-Chart Plugin: OSGi plugins cannot be deployed via the classpath, which is usually WEB-INF/lib.
 URL is: jar:file:/C:/Program%20Files/Atlassian/JIRA/lib/gantt-3.1.1-JIRA6.jar!/atlassian-plugin.xml
jira-timesheet-plugin: org/springframework/context/ApplicationContextAware
********************************************************************************************************************************************************************************************************

Note that the error above may refer to any other plugin JAR, depending on the specific case. In this example the plugin jar is for the Gantt-Chart Plugin.

Cause

A JIRA plugin jar (which is not a version 1 plugin) file has been installed/copied into the following path $JIRA-installation-directory/lib or $JIRA-installation-directory/atlassian-jira/WEB-INF/lib, instead of the $JIRA-home-directory/plugins/installed-plugins/ directory.

 

Resolution

  • Shutdown JIRA 
  • Simply remove the installed plugin from $JIRA-installation-directory/lib or $JIRA-installation-directory/atlassian-jira/WEB-INF/lib. You may install the plugin directly via the UPM directly or by copying it into the $JIRA-home-directory/plugins/installed-plugins/ directory
  • Restart JIRA
Last modified on Nov 15, 2018

Was this helpful?

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