org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘com.atlassian.bamboo.build.ViewBuildResults’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.atlassian.bamboo.storage.StorageLocationService com.atlassian.bamboo.build.ViewBuildResults.storageLocationService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.atlassian.bamboo.storage.StorageLocationService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
This is my plugin-xml
<package name="Result" extends="buildView">
<action name="viewResult" class="com.atlassian.bamboo.build.ViewBuildResults">
<result name="input" type="freemarker">/templates/mytemplate.ftl</result>
<result name="success" type="freemarker">/templates/mytemplate.ftl</result>
<result name="error" type="freemarker">/templates/mytemplate.ftl</result>
</action>
</package>
<web-item key="scanReport" name="Project Result" section="chainResults.subMenu/chainResults">
<label key="Project Report" />
<link linkId="scans">/build/result/viewResult.action?buildKey=${buildKey}&buildNumber=${buildNumber}</link>
<!-- <resource type="freemarker" name="view" location="templates/mytemplate.ftl"/> -->
</web-item>