Hi.
I try add ActiveObjects storage service to plugin but get on runtime
Error autowiring Action 'com.avvd.jira.plugin.defaulter.WebWork'. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.avvd.jira.plugin.defaulter.WebWork': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.activeobjects.external.ActiveObjects]: No qualifying bean of type [com.atlassian.activeobjects.external.ActiveObjects] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport(value=)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.atlassian.activeobjects.external.ActiveObjects] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport(value=)}
WebWork.java
@Scanned
public class WebWork extends JiraWebActionSupport {
private ConfigurationStorageService configurationStorageService;
@Inject
public WebWork(@ComponentImport ActiveObjects ao)
{
this.configurationStorageService = new ConfigurationStorageService(ao);
}
@Override
public String doExecute()
{
StorageService.java
public class ConfigurationStorageService implements ConfigurationStorage {
private ActiveObjects ao;
public ConfigurationStorageService(ActiveObjects ao){this.ao = ao;}
Repository https://gitlab.com/svchost1101/defaulter
I also create this topic here https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Unsatisfied-depedency-when-using-ActiveObjects/qaq-p/1165012?utm_source=atlcomm&utm_medium=email&utm_campaign=accept_as_solution_reminder&utm_content=topic 6 days ago but can’t get help.
My Jira instance is 7.6.4
What i miss?
Thank for advice.
PS: I am Sorry for the formatting of the text, I do not understand how this editor works here.