Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1. > Error starting ApplicationContext. To display the conditions report
  2. > re-run your application with 'debug' enabled. 2019-01-16 23:20:19.511
  3. > ERROR 9589 --- [ main] o.s.boot.SpringApplication
  4. > : Application run failed
  5. >
  6. > org.springframework.context.ApplicationContextException: Unable to
  7. > start web server; nested exception is
  8. > org.springframework.boot.web.server.WebServerException: Could not load
  9. > key store: class path resource [keystore.p12] cannot be resolved to
  10. > URL because it does not exist at
  11. > org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:157)
  12. > ~[spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  13. > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:540)
  14. > ~[spring-context-5.1.4.RELEASE.jar:5.1.4.RELEASE] at
  15. > org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
  16. > ~[spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  17. > org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
  18. > [spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  19. > org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
  20. > [spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  21. > org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
  22. > [spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  23. > org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
  24. > [spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  25. > org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
  26. > [spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  27. > com.example.demo.DemoApplicationKt.main(DemoApplication.kt:16)
  28. > [classes/:na] Caused by:
  29. > org.springframework.boot.web.server.WebServerException: Could not load
  30. > key store: class path resource [keystore.p12] cannot be resolved to
  31. > URL because it does not exist at
  32. > org.springframework.boot.web.embedded.tomcat.SslConnectorCustomizer.configureSslKeyStore(SslConnectorCustomizer.java:136)
  33. > ~[spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  34. > org.springframework.boot.web.embedded.tomcat.SslConnectorCustomizer.configureSsl(SslConnectorCustomizer.java:92)
  35. > ~[spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  36. > org.springframework.boot.web.embedded.tomcat.SslConnectorCustomizer.customize(SslConnectorCustomizer.java:58)
  37. > ~[spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  38. > org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.customizeSsl(TomcatServletWebServerFactory.java:317)
  39. > ~[spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  40. > org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.customizeConnector(TomcatServletWebServerFactory.java:300)
  41. > ~[spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  42. > org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:166)
  43. > ~[spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  44. > org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:181)
  45. > ~[spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] at
  46. > org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154)
  47. > ~[spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] ... 8 common frames
  48. > omitted Caused by: java.io.FileNotFoundException: class path resource
  49. > [keystore.p12] cannot be resolved to URL because it does not exist at
  50. > org.springframework.util.ResourceUtils.getURL(ResourceUtils.java:137)
  51. > ~[spring-core-5.1.4.RELEASE.jar:5.1.4.RELEASE] at
  52. > org.springframework.boot.web.embedded.tomcat.SslConnectorCustomizer.configureSslKeyStore(SslConnectorCustomizer.java:133)
  53. > ~[spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE] ... 15 common frames
  54. > omitted
  55.  
  56. #spring.data.jpa.repositories.enabled=false
  57.  
  58.  
  59.  
  60. # Tell Spring Security (if used) to require requests over HTTPS
  61. security.require-ssl=true
  62.  
  63. # The format used for the keystore
  64. server.ssl.key-store-type=PKCS12
  65. # The path to the keystore containing the certificate
  66. server.ssl.key-store=./keystore.p12
  67. # The password used to generate the certificate
  68. server.ssl.key-store-password=
  69. # The alias mapped to the certificate
  70. server.ssl.key-alias=tomcat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement