Details
-
Bug
-
Resolution: Fixed
-
Low
-
3.0.1
-
using atlassian-plugin-sdk-3.0-beta5 on macosX 10.5 with jdk 1.5.0_19 running from atlas-run (tomcat 6x)
Description
Using the SDK I am tryin to wire up ExportDownloadResourceManager through constructor injection.
The class activation is failing because of
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'XXXX': Unsatisfied dependency expressed through constructor argument with index 2 of type [com.atlassian.confluence.importexport.resource.ExportDownloadResourceManager]: : No unique bean of type [com.atlassian.confluence.importexport.resource.ExportDownloadResourceManager] is defined: Unsatisfied dependency of type [class com.atlassian.confluence.importexport.resource.ExportDownloadResourceManager]: expected at least 1 matching bean;
I have solved the problem by wiring the property "manualy" using
ContainerManager.getComponent("exportDownloadResourceManager")
but this is hardly ideal.
There is a forum post about this issue at http://forums.atlassian.com/thread.jspa?threadID=37519&tstart=0
and there is documentation suggesting that my initial approach would be effective at
http://confluence.atlassian.com/pages/viewpage.action?pageId=107185152
Thisis actually a code sample that would expose the problem: exportDownloadResourceManager is not automatically injected in the setter.