Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No qualifying bean exception while building package. #1

Open
mandar14 opened this issue Apr 1, 2020 · 0 comments
Open

No qualifying bean exception while building package. #1

mandar14 opened this issue Apr 1, 2020 · 0 comments

Comments

@mandar14
Copy link

mandar14 commented Apr 1, 2020

Hi Team,

I trying to use credential service broker, and pushed app for same.
Now to test it want to deploy this client. Getting following error during building package.

[ERROR] contextLoads(org.springframework.cloud.credhub.client.CredentialsServiceClientApplicationTests)  Time elapsed: 0.007 s  <<< ERROR!
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'credentialsServiceController' defined in file [/home/ubuntu/mk/credentials-service-client/target/classes/org/springframework/cloud/credhub/client/controller/CredentialsServiceController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.cloud.credhub.client.cloud.CredsService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.cloud.credhub.client.cloud.CredsService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}```

Don't have any experience in java/spring. Any suggestion how to solve this

Build env : Unbuntu with openJDK8

Thank you.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant