org.springframework.beans.factory.BeanCreationException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Your applicationcontext.xml has a transactionManager defined. Your would need to remove it or add an entity manager.

tip

Spring Security detects beans in the root context. Move the detection of the bean (or declare it explictly) in the root context.

tip

Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml

tip

Upgrade to Confluence 3.5.5 or install the patch as explained in the details.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • *Steps to Reproduce:* # Go to _JIRA Administration > Add-ons > Manage Add-ons_ # For JIRA 6.2.0 find the Fisheye Plugin and click update. # For JIRA with the version 6.2.1 and above, download the plugin and Upload it. # Wait until the installation finished. *Expected Result:* As shown in the [JIRA FishEye/Stash Plugin|https://marketplace.atlassian.com/plugins/com.atlassian.jirafisheyeplugin/versions] the plugin is supported for JIRA 6.2 hence the plugin is installed correctly. *Actual Result:* The plugin installed and cannot be enabled. With the screen shot and logs shown like below. !fsh636.PNG|thumbnail! {noformat} 2014-08-13 23:05:21,100 ThreadPoolAsyncTaskExecutor::Thread 20 ERROR admin 1385x201x1 1fb6j4s 0:0:0:0:0:0:0:1 /rest/plugins/1.0/ [extender.internal.activator.ContextLoaderListener] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.jira.plugins.jira-fisheye-plugin, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'showPanelHelper' defined in URL [bundle://136.0:0/META-INF/spring/jira-fisheye-plugin-components.xml]: Cannot resolve reference to bean 'stashCommitService' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stashCommitService' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.applinks.api.ApplicationLinkService]: : Error loading class [com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl] for bean with name 'refreshManager' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl] for bean with name 'refreshManager' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) ... Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stashCommitService' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.applinks.api.ApplicationLinkService]: : Error loading class [com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl] for bean with name 'refreshManager' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl] for bean with name 'refreshManager' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)] at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:591) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:193) ... Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl] for bean with name 'refreshManager' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)] at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1144) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524) ... Caused by: java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)] at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:112) at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156) ... Caused by: java.lang.NoClassDefFoundError: com/atlassian/jira/cluster/ClusterMessageConsumer at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) ... Caused by: java.lang.ClassNotFoundException: com.atlassian.jira.cluster.ClusterMessageConsumer at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547) ... {noformat} *Notes:* While this issue is not affecting JIRA 6.3.3 and the update button is not showing in JIRA 6.2.1 and above, the information from the page of [JIRA FishEye/Stash Plugin|https://marketplace.atlassian.com/plugins/com.atlassian.jirafisheyeplugin/versions] should be updated as it can be found by "Googling" it and by updating the page should able to prevent user encountering this issue. *Workaround:* By reverting back the plugin version to the version of the bundled plugin could make the plugin to the working state again. The steps are: # Stop JIRA # navigate to _JIRA Home Folder > plugins > installed-plugins_ # find the JIRA Fisheye Plugin (jira-fisheye-plugin-6.X.jar) # remove the plugin from the folder. (this will make JIRA to revert back to the bundled plugin version on the next start) # Start JIRA.
    via by Julian Rahmadiputra [Atlassian],
  • *Steps to Reproduce:* # Go to _JIRA Administration > Add-ons > Manage Add-ons_ # For JIRA 6.2.0 find the Fisheye Plugin and click update. # For JIRA with the version 6.2.1 and above, download the plugin and Upload it. # Wait until the installation finished. *Expected Result:* As shown in the [JIRA FishEye/Stash Plugin|https://marketplace.atlassian.com/plugins/com.atlassian.jirafisheyeplugin/versions] the plugin is supported for JIRA 6.2 hence the plugin is installed correctly. *Actual Result:* The plugin installed and cannot be enabled. With the screen shot and logs shown like below. !fsh636.PNG|thumbnail! {noformat} 2014-08-13 23:05:21,100 ThreadPoolAsyncTaskExecutor::Thread 20 ERROR admin 1385x201x1 1fb6j4s 0:0:0:0:0:0:0:1 /rest/plugins/1.0/ [extender.internal.activator.ContextLoaderListener] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.jira.plugins.jira-fisheye-plugin, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'showPanelHelper' defined in URL [bundle://136.0:0/META-INF/spring/jira-fisheye-plugin-components.xml]: Cannot resolve reference to bean 'stashCommitService' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stashCommitService' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.applinks.api.ApplicationLinkService]: : Error loading class [com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl] for bean with name 'refreshManager' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl] for bean with name 'refreshManager' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) ... Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stashCommitService' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.applinks.api.ApplicationLinkService]: : Error loading class [com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl] for bean with name 'refreshManager' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl] for bean with name 'refreshManager' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)] at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:591) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:193) ... Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl] for bean with name 'refreshManager' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)] at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1144) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524) ... Caused by: java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)] at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:112) at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156) ... Caused by: java.lang.NoClassDefFoundError: com/atlassian/jira/cluster/ClusterMessageConsumer at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) ... Caused by: java.lang.ClassNotFoundException: com.atlassian.jira.cluster.ClusterMessageConsumer at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547) ... {noformat} *Notes:* While this issue is not affecting JIRA 6.3.3 and the update button is not showing in JIRA 6.2.1 and above, the information from the page of [JIRA FishEye/Stash Plugin|https://marketplace.atlassian.com/plugins/com.atlassian.jirafisheyeplugin/versions] should be updated as it can be found by "Googling" it and by updating the page should able to prevent user encountering this issue. *Workaround:* By reverting back the plugin version to the version of the bundled plugin could make the plugin to the working state again. The steps are: # Stop JIRA # navigate to _JIRA Home Folder > plugins > installed-plugins_ # find the JIRA Fisheye Plugin (jira-fisheye-plugin-6.X.jar) # remove the plugin from the folder. (this will make JIRA to revert back to the bundled plugin version on the next start) # Start JIRA.
    via by Julian Rahmadiputra [Atlassian],
  • Bean creation exception
    via Stack Overflow by JNPW
    ,
  • IdP-ShibV2x [jehan 2013]
    via by Unknown author,
    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'showPanelHelper' defined in URL [bundle://136.0:0/META-INF/spring/jira-fisheye-plugin-components.xml]: Cannot resolve reference to bean 'stashCommitService' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stashCommitService' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.applinks.api.ApplicationLinkService]: : Error loading class [com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl] for bean with name 'refreshManager' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl] for bean with name 'refreshManager' defined in URL [bundle://136.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl not found from bundle [JIRA FishEye Plugin (com.atlassian.jira.plugins.jira-fisheye-plugin)] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    linxiaolong
    1 times, last one,
    54 more bugmates