Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Springscanner Unsatisfied dependendency error Edited

Hi.

I try to build plugin with custom web-panel and context-provider using PluginSettingsFactory
SettingsStoreService.class

@Component
public class SettingsStorageService {
@Autowired
final PluginSettingsFactory pluginSettingsFactory;
private String storageKey;

public SettingsStorageService(PluginSettingsFactory pluginSettingsFactory)
{...

MainMenu.class

public class MainMenu extends AbstractJiraContextProvider {

private SettingsStorageService settingsStorageService;

public MainMenu(@ComponentImport PluginSettingsFactory pluginSettingsFactory)
{
settingsStorageService = new SettingsStorageService(pluginSettingsFactory);
}

@Override
public Map getContextMap(ApplicationUser applicationUser, JiraHelper jiraHelper)
{...

But springscanner says  

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'com.avvd.jira.plugin.additional.MainMenu': Unsatisfied dependency expressed through constructor argument with index 0 of type
[com.atlassian.sal.api.pluginsettings.PluginSettingsFactory]: No qualifying bean of type [com.atlassian.sal.api.pluginsettings.PluginSettingsFactory]
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.sal.api.pluginsettings.PluginSettingsFactory]
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=)}

 How to make proper ComponentImport in this case?
Thanks for help.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,623 views 22 33
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you