Hi
we are validating the migration of our Confluence to 5.7.
We have one major problem with one of our plugins, that cannot be enabled in 5.7. The problem is related to the newly added class SharedDataManager which is used by the TokenAuthenticationManager, which in turn is used by the plugin.
The plugin works well with 5.6.x
Adding the component import to the atlassian-plugin.xml did not solve the problem.
Any ideas?
Here is the error:
2015-01-31 17:14:21,013 ERROR[ThreadPoolAsyncTaskExecutor::Thread 19][plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.greenpepper.confluence.plugin'
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'greenpepper.listener' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type[com.greenpepper.confluence.velocity.ConfluenceGreenPepper]: : Error creating bean with name 'confluenceGreenPepper' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 2 of type[com.atlassian.confluence.rpc.auth.TokenAuthenticationManager]: : Error creating bean with name 'tokenAuthenticationManager' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 5 of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager]: : No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tokenAuthenticationManager' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 5 of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager]: : No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'confluenceGreenPepper' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 2 of type[com.atlassian.confluence.rpc.auth.TokenAuthenticationManager]: : Error creating bean with name 'tokenAuthenticationManager' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 5 of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager]: : No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tokenAuthenticationManager' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 5 of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager]: : No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:591)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:193)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)