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

Able to build this project but getting error while running app #1

Open
amitcvr1987 opened this issue Jul 17, 2019 · 0 comments
Open

Comments

@amitcvr1987
Copy link

amitcvr1987 commented Jul 17, 2019

I have imported this whole project "devconf2019-authz-master" which has 2 sub-modules like devconf2019-app and devconfapp-service. Build is successful now after I added javax.validation dependency and parent tag in parent project.

Now while running the project, error like below --
Eclipse Console error
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-07-17 16:16:52.169 ERROR 106920 --- [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'carsService': Unsatisfied dependency expressed through field 'db'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inMemoryCarsDB' defined in file [D:\devconf2019-authz-master\devconf2019-service\target\classes\org\keycloak\quickstarts\devconf2019\service\InMemoryCarsDB.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.keycloak.quickstarts.devconf2019.service.InMemoryCarsDB]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error when initializing cars
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:587) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:91) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]

Eclipse Console error

Let me know if I missing some dependency or need to update any ? Or if nay change to be done at source code. I need to integrate my springboot app with keycloak and I wanted to understand this sample application first.

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