Question: Error starting ApplicationContext. To display the conditions report re - run your application with 'debug' enabled. 2 0 2 4 - 0 6 - 2
Error starting ApplicationContext. To display the conditions report rerun your application with 'debug' enabled.
:: ERROR main osboot.SpringApplication : Application run failed
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Could not load key store 'classpath:keystore.jks
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefreshServletWebServerApplicationContextjava: ~springbootRELEASE.jar:RELEASE
at org.springframework.context.support.AbstractApplicationContext.refreshAbstractApplicationContextjava: ~springcontextRELEASE.jar:RELEASE
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refreshServletWebServerApplicationContextjava: ~springbootRELEASE.jar:RELEASE
at org.springframework.boot.SpringApplication.refreshSpringApplicationjava:springbootRELEASE.jar:RELEASE
at org.springframework.boot.SpringApplication.refreshContextSpringApplicationjava:springbootRELEASE.jar:RELEASE
at org.springframework.boot.SpringApplication.runSpringApplicationjava:springbootRELEASE.jar:RELEASE
at org.springframework.boot.SpringApplication.runSpringApplicationjava:springbootRELEASE.jar:RELEASE
at org.springframework.boot.SpringApplication.runSpringApplicationjava:springbootRELEASE.jar:RELEASE
at com.snhu.sslserver.SslServerApplication.mainSslServerApplicationjava:classes:na
Caused by: org.springframework.boot.web.server.WebServerException: Could not load key store 'classpath:keystore.jks
at org.springframework.boot.web.embedded.tomcat.SslConnectorCustomizer.configureSslKeyStoreSslConnectorCustomizerjava: ~springbootRELEASE.jar:RELEASE
at org.springframework.boot.web.embedded.tomcat.SslConnectorCustomizer.configureSslSslConnectorCustomizerjava: ~springbootRELEASE.jar:RELEASE
at org.springframework.boot.web.embedded.tomcat.SslConnectorCustomizer.customizeSslConnectorCustomizerjava: ~springbootRELEASE.jar:RELEASE
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.customizeSslTomcatServletWebServerFactoryjava: ~springbootRELEASE.jar:RELEASE
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.customizeConnectorTomcatServletWebServerFactoryjava: ~springbootRELEASE.jar:RELEASE
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServerTomcatServletWebServerFactoryjava: ~springbootRELEASE.jar:RELEASE
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServerServletWebServerApplicationContextjava: ~springbootRELEASE.jar:RELEASE
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefreshServletWebServerApplicationContextjava: ~springbootRELEASE.jar:RELEASE
common frames omitted
Caused by: java.ioFileNotFoundException: class path resource keystorejks cannot be resolved to URL because it does not exist
at org.springframework.util.ResourceUtils.getURLResourceUtilsjava: ~springcoreRELEASE.jar:RELEASE
at org.springframework.boot.web.embedded.tomcat.SslConnectorCustomizer.configureSslKeyStoreSslConnectorCustomizerjava: ~springbootRELEASE.jar:RELEASE
common frames omitted
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
