Comments (5)
@joe-penske The spring-credhub-demo
module build has fallen behind the rest of the project a bit. Can you try updating a few versions in the build file as shown below and try again?
springBootVersion = "2.2.6.RELEASE"
(here)compile("org.springframework.credhub:spring-credhub-starter:2.1.1.RELEASE")
(here)
from spring-credhub.
Thank you very much @scottfrederick for your response. I updated both versions and tried redeploying to PCF. Now it produces a different error. Truly appreciate you looking into this.
2020-10-15T15:44:31.52+0000 [APP/PROC/WEB/0] OUT JVM Memory Configuration: -Xmx441590K -Xss1M -XX:ReservedCodeCacheSize=240M -XX:MaxDirectMemorySize=10M -XX:MaxMetaspaceSize=94985K
2020-10-15T15:44:34.03+0000 [APP/PROC/WEB/0] OUT . ____ _ __ _ _
2020-10-15T15:44:34.03+0000 [APP/PROC/WEB/0] OUT /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
2020-10-15T15:44:34.03+0000 [APP/PROC/WEB/0] OUT ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2020-10-15T15:44:34.03+0000 [APP/PROC/WEB/0] OUT \\/ ___)| |_)| | | | | || (_| | ) ) ) )
2020-10-15T15:44:34.04+0000 [APP/PROC/WEB/0] OUT ' |____| .__|_| |_|_| |_\__, | / / / /
2020-10-15T15:44:34.04+0000 [APP/PROC/WEB/0] OUT =========|_|==============|___/=/_/_/_/
2020-10-15T15:44:34.04+0000 [APP/PROC/WEB/0] OUT :: Spring Boot :: (v2.2.6.RELEASE)
2020-10-15T15:44:34.34+0000 [APP/PROC/WEB/0] OUT 2020-10-15 15:44:34.341 INFO 20 --- [ main] pertySourceApplicationContextInitializer : 'cloud' property source added
2020-10-15T15:44:34.35+0000 [APP/PROC/WEB/0] OUT 2020-10-15 15:44:34.356 INFO 20 --- [ main] nfigurationApplicationContextInitializer : Reconfiguration enabled
2020-10-15T15:44:34.37+0000 [APP/PROC/WEB/0] OUT 2020-10-15 15:44:34.371 INFO 20 --- [ main] o.s.credhub.demo.Application : Starting Application on 77e3fd88-a493-43d4-4d0d-19de with PID 20 (/home/vcap/app/BOOT-INF/classes started by vcap in /home/vcap/app)
2020-10-15T15:44:34.37+0000 [APP/PROC/WEB/0] OUT 2020-10-15 15:44:34.372 INFO 20 --- [ main] o.s.credhub.demo.Application : The following profiles are active: cloud
2020-10-15T15:44:36.22+0000 [APP/PROC/WEB/0] OUT 2020-10-15 15:44:36.228 WARN 20 --- [ main] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'credHubDemoController' defined in file [/home/vcap/app/BOOT-INF/classes/org/springframework/credhub/demo/CredHubDemoController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.credhub.core.CredHubOperations' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
2020-10-15T15:44:36.33+0000 [APP/PROC/WEB/0] OUT 2020-10-15 15:44:36.336 INFO 20 --- [ main] ConditionEvaluationReportLoggingListener :
2020-10-15T15:44:36.33+0000 [APP/PROC/WEB/0] OUT Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-10-15T15:44:36.63+0000 [APP/PROC/WEB/0] OUT 2020-10-15 15:44:36.638 ERROR 20 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
2020-10-15T15:44:36.63+0000 [APP/PROC/WEB/0] OUT ***************************
2020-10-15T15:44:36.63+0000 [APP/PROC/WEB/0] OUT APPLICATION FAILED TO START
2020-10-15T15:44:36.63+0000 [APP/PROC/WEB/0] OUT ***************************
2020-10-15T15:44:36.63+0000 [APP/PROC/WEB/0] OUT Description:
2020-10-15T15:44:36.63+0000 [APP/PROC/WEB/0] OUT Parameter 0 of constructor in org.springframework.credhub.demo.CredHubDemoController required a bean of type 'org.springframework.credhub.core.CredHubOperations' that could not be found.
2020-10-15T15:44:36.63+0000 [APP/PROC/WEB/0] OUT The following candidates were found but could not be injected:
2020-10-15T15:44:36.63+0000 [APP/PROC/WEB/0] OUT - Bean method 'credHubTemplate' in 'CredHubTemplateConfiguration.CredHubTemplateBaseConfiguration' not loaded because @ConditionalOnClass did not find required class 'javax.servlet.http.HttpServletRequest'
2020-10-15T15:44:36.63+0000 [APP/PROC/WEB/0] OUT - Bean method 'credHubTemplate' in 'CredHubTemplateConfiguration.CredHubTemplateOAuth2ClientConfiguration' not loaded because @ConditionalOnClass did not find required class 'javax.servlet.http.HttpServletRequest'
2020-10-15T15:44:36.63+0000 [APP/PROC/WEB/0] OUT - Bean method 'credHubTemplate' in 'CredHubTemplateConfiguration.CredHubTemplateOAuth2Configuration' not loaded because @ConditionalOnClass did not find required class 'javax.servlet.http.HttpServletRequest'
2020-10-15T15:44:36.63+0000 [APP/PROC/WEB/0] OUT Action:
2020-10-15T15:44:36.63+0000 [APP/PROC/WEB/0] OUT Consider revisiting the entries above or defining a bean of type 'org.springframework.credhub.core.CredHubOperations' in your configuration.
2020-10-15T15:44:36.70+0000 [APP/PROC/WEB/0] OUT Exit status 1
2020-10-15T15:44:36.70+0000 [CELL/SSHD/0] OUT Exit status 0
2020-10-15T15:44:42.37+0000 [CELL/0] OUT Cell 72ade8a8-e7b7-4c60-a0a4-34f493c187cd stopping instance 77e3fd88-a493-43d4-4d0d-19de
2020-10-15T15:44:42.37+0000 [CELL/0] OUT Cell 72ade8a8-e7b7-4c60-a0a4-34f493c187cd destroying container for instance 77e3fd88-a493-43d4-4d0d-19de
2020-10-15T15:44:42.39+0000 [API/3] OUT Process has crashed with type: "web"
2020-10-15T15:44:42.42+0000 [API/3] OUT App instance exited with guid ee21626f-b5d9-4ed1-b403-9d3313d6ef13 payload: {"instance"=>"77e3fd88-a493-43d4-4d0d-19de", "index"=>0, "cell_id"=>"72ade8a8-e7b7-4c60-a0a4-34f493c187cd", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 1", "crash_count"=>1, "crash_timestamp"=>1602776682346698823, "version"=>"7e693e74-ad84-43f1-9dd7-7cbf3b54928b"}
2020-10-15T15:44:42.42+0000 [CELL/0] OUT Cell 7ee57cf4-81db-41bf-bba7-b7bea3d02a84 creating container for instance fd682896-198d-49ec-45e3-073f
2020-10-15T15:44:42.63+0000 [PROXY/0] OUT Exit status 137
from spring-credhub.
@joe-penske Please accept my apologies for letting the demo app get out of date w.r.t. the latest release of the project. I've fixed some problems in this commit. The application starts cleanly for me with these changes.
from spring-credhub.
@scottfrederick Please don't apologize. You are doing a great service by providing these resources for the open source community.
With the new changes, it is deploying successfully. thank you very much for your help.
I have a question on the contents of demo.json. Which URI is it expecting here? : "uri": "https://example.com"
from spring-credhub.
I have a question on the contents of demo.json.
The contents of demo.json
doesn't really matter. It's just an example of storing some set of value/value pairs in CredHub as a JSON credential. You can replace those key/values pairs with anything else you'd like to experiment with.
from spring-credhub.
Related Issues (20)
- Update to Spring Boot 3.2
- Add support for 'Get All Certificates' operation
- Add support for 'Get Certificate by Name' operation HOT 1
- Add support for 'Regenerate Certificate' operation
- Add support for 'Update Transitional Version' certificate operation
- Add support for certificate bulk-regeneration operation
- Add support for V2 permissions API
- Deprecate 'additional_permissions' fields on credentials
- The request includes an unrecognized parameter 'overwrite' HOT 2
- Wrong closing tag in docs HOT 1
- I'm trying to run this in PCF, however I don't know what url to specific for SPRING_CREDHUB_URL in manifest.yml when using credhub tile service-broker inside PCF. HOT 1
- New release version HOT 2
- Mis-configured client ID causes NPE HOT 1
- CredHub reactive OAuth2 autoconfiguration overrides Spring Boot defaults HOT 2
- Consider requiring Spring Security 5.2 for OAuth2 authentication HOT 2
- Response body of non-200 responses is lost in reactive flows
- Broken links in the document HOT 2
- GetServiceInstanceBindingRequest is missing optional query string parameters HOT 2
- Update Spring CredHub for Spring Boot 3.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-credhub.