org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TimesheetSchemeManager' defined in URL
2017-04-13 09:50:39,159 ThreadPoolAsyncTaskExecutor::Thread 3 ERROR [c.a.p.osgi.factory.OsgiPlugin] Unable to start the plugin container for plugin 'fr.alkaes.minyaa.jira-plugin-minyaa-time' org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TimesheetSchemeManager' defined in URL [bundle://183.0:0/META-INF/spring/atlassian-plugins-components.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [fr.alkaes.myaatm.timesheet.scheme.DefaultTimesheetSchemeManager]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/atlassian/jira/cache/SwitchingCacheFactory at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325) at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290) at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [fr.alkaes.myaatm.timesheet.scheme.DefaultTimesheetSchemeManager]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/atlassian/jira/cache/SwitchingCacheFactory at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267) ... 18 more Caused by: java.lang.NoClassDefFoundError: com/atlassian/jira/cache/SwitchingCacheFactory at fr.alkaes.commons.scheme.AbstractSchemeManager.<init>(AbstractSchemeManager.java:40) at fr.alkaes.myaatm.timesheet.scheme.DefaultTimesheetSchemeManager.<init>(DefaultTimesheetSchemeManager.java:66) ... 3 filtered at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) ... 20 more Caused by: java.lang.ClassNotFoundException: com.atlassian.jira.cache.SwitchingCacheFactory at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) at org.apache.felix.framework.ExtensionManager$ExtensionManagerWiring.getClassByDelegation(ExtensionManager.java:873) at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1553) at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1484) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 28 more
Note: We had removed Minyaa Timesheet Schemes before upgrading our Jira test enviroment. I think this issue related to this. But in production we use Jira v6.3.15 and Minyaa v3.4.4 without any problem.
In order to achive this, what should I do?