Symptom: "NoClassDefFoundError: com/atlassian/jira/gadgets/system/AbstractResource"
Cause: a plugin is lazily instantiated and then fails to find a needed class
Solution: make sure the class and package name are correct and that the class is declared as a
component in its
In this case, the class using
AbstractResource class was in the wrong package. Unfortunately, the name of the actual class in the plugin that required the missing class does not appear in the log file.
A More Complex Example
In this case, the
SearchQueryBackedResource class was not exported by the
atlassian-plugin.xml file. The workaround is to copy the required class (and all the classes it requires in turn) to your gadget source tree. Alternatively JRA-18986 recommends creating a simple class in your plugin that wraps the core JIRA class and just calls