Installation Failed with 'Unable to enable web fragment' Error
Symptoms
The plugin is not able to installed successfully and the following errors appear in the logfile:
There was an error loading the descriptor 'GreenHopper global configuration' of plugin 'com.pyxis.greenhopper.jira'. Disabling.
java.lang.RuntimeException: Unable to enable web fragment
at com.atlassian.plugin.web.descriptors.AbstractWebFragmentModuleDescriptor.enabled(AbstractWebFragmentModuleDescriptor.java:128)
at com.atlassian.plugin.web.descriptors.DefaultAbstractWebFragmentModuleDescriptor.enabled(DefaultAbstractWebFragmentModuleDescriptor.java:34)
at com.atlassian.plugin.manager.DefaultPluginManager.notifyModuleEnabled(DefaultPluginManager.java:1377)
at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModule(DefaultPluginManager.java:1192)
at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModules(DefaultPluginManager.java:1155)
at com.atlassian.plugin.manager.DefaultPluginManager.notifyPluginEnabled(DefaultPluginManager.java:1133)
...
Caused by: com.atlassian.plugin.PluginParseException: Unable to load the module's display conditions: java.lang.IllegalStateException: Cannot autowire object because the Spring context is unavailable. Ensure your OSGi bundle contains the 'Spring-Context' header.
at com.atlassian.plugin.web.descriptors.ConditionElementParser.makeCondition(ConditionElementParser.java:159)
at com.atlassian.plugin.web.descriptors.ConditionElementParser.makeConditions(ConditionElementParser.java:124)
at com.atlassian.plugin.web.descriptors.ConditionElementParser.makeConditions(ConditionElementParser.java:79)
at com.atlassian.plugin.web.descriptors.AbstractWebFragmentModuleDescriptor.makeConditions(AbstractWebFragmentModuleDescriptor.java:67)
at com.atlassian.plugin.web.descriptors.AbstractWebFragmentModuleDescriptor.enabled(AbstractWebFragmentModuleDescriptor.java:123)
...
(more)
During the startup, the following error might appear as well:
2010-12-24 12:23:07,610 Spring executor 3 ERROR [extender.internal.activator.ContextLoaderListener] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.pyxis.greenhopper.jira, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.atlassian.greenhopper.service.issue.DefaultGHVersionService] for bean with name 'gh-versionService' defined in URL [bundle://43.0:1/com/atlassian/greenhopper/service/issue/DefaultGHVersionService.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: (com/atlassian/greenhopper/service/issue/DefaultGHVersionService) bad major version at offset=6
at org.springframework.beans
...
(more)
Caused by: java.lang.UnsupportedClassVersionError: (com/atlassian/greenhopper/service/issue/DefaultGHVersionService) bad major version at offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:258)
Cause
Unsupported platform such as incorrect JDK version.
Resolution
- Check the System Info or from the logs for the JDK version.
- Try to compare the important details of the System Info (e.g. JDK version, Operating System) with the following documentation:
Note: This problem also related to [ARCHIVED] Unable to Install JIRA Agile due to Bad Version Number in .class File
Last modified on Aug 10, 2021
Powered by Confluence and Scroll Viewport.