Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

No qualifying bean of type [...] although there is a class with @ExportAsService

Thorsten Kamann
Contributor
August 31, 2018

Hello,

 

I am trying to access some Greenhopper services out of my plugin. For this I take a look into the sources and found this class definition:

@ExportAsService
@Service
public class ManagedCustomFieldsServiceImpl implements ManagedCustomFieldsService {
[...]
}


As I understood classes with this annotation are for public usage. But if I add this to my plugin class:

@Inject
public MyPluginClass(ActiveObjects activeObjects, @ComponentImport ManagedCustomFieldsService mcfs){
this.mcfs = mcfs;
}


I am getting this error:

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.atlassian.greenhopper.api.customfield.ManagedCustomFieldsService] 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=)}
[INFO] 

 

What do i wrong or what I am missing?

 

Thorsten

2 answers

1 vote
Thorsten Kamann
Contributor
September 11, 2018

Hey guys...no answer? 

Wondering why this is so difficult to manage...

0 votes
Sotev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 24, 2022

I am also currently facing the exact same issue.

Have you found a solution for this? @Thorsten Kamann

Suggest an answer

Log in or Sign up to answer