Skip to content

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

Description

@amitcvr1987

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions