org.springframework.beans.factory.UnsatisfiedDependencyException out of the box
See original GitHub issueOverview of the issue
Spring Boot app created by jHipster with OAuth2 auth doesn’t run out of the box, and fails with an unintuitive exception.
Motivation for or Use Case
This falls short of the premise that apps run out of the box, and isn’t trivial to fix. There should at least be documentation somewhere that covers a workaround/what to do.
Reproduce the error
Run the automatically created Spring rule after importing the project to IntelliJ.
Related issues
No
Suggest a Fix
Not sure. Either fix the root cause or document missing steps. From the stack trace, it seems there should be some server running on my machine, and there isn’t.
JHipster Version(s)
4.0.8
JHipster configuration
{
"generator-jhipster": {
"jhipsterVersion": "4.0.8",
"baseName": "gfx2",
"packageName": "com.google.gfx",
"packageFolder": "com/google/gfx",
"serverPort": "8080",
"authenticationType": "oauth2",
"hibernateCache": "no",
"clusteredHttpSession": false,
"websocket": false,
"databaseType": "mongodb",
"devDatabaseType": "mongodb",
"prodDatabaseType": "mongodb",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSocialSignIn": false,
"clientFramework": "angular2",
"useSass": false,
"clientPackageManager": "yarn",
"applicationType": "monolith",
"testFrameworks": [],
"jhiPrefix": "jhi",
"enableTranslation": true,
"nativeLanguage": "en",
"languages": [
"en"
]
}
}
Entity configuration(s) entityName.json
files generated in the .jhipster
directory
Browsers and Operating System
Ubuntu
- [x ] Checking this box is mandatory (this is just to show you read everything)
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
hibernate - org.springframework.beans.factory ...
Spring boot does a lot of things out of the box for you. Configuring the DataSource. First of all, there is the datasource....
Read more >REST Security with JWT using Java and Spring Security - Toptal
Let's try to examine the state of REST security today, using a straightforward Spring security tutorial to demonstrate it in action. REST (which...
Read more >Re: Atlas UI is not working - Cloudera Community - 157097
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'notificationHookConsumer' defined in URL ...
Read more >Spring Version Change for Hybris Upgrade - SAP Community
at java.lang.Thread.run(Unknown Source) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean ...
Read more >Analytics agent fails to start: org.springframework.beans ...
Error Message : Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiKeyCache': ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh yes you have a timeout while connecting to MongoDB, so that’s definitely the issue! You can of course run a “normal” MongoDB (I used to install it on my Mac with Homebrew), but now that we support Docker this is much easier.
Then, maybe we should have a better error message here: you can see it at the end of the Stacktrace, but it’s definitely not easy to find & read.
Oh yes @ruddell is probably right -> for this run
docker-compose -f src/main/docker/mongodb.yml up -d
in your project