Getting “Failed to determine a suitable driver class” when upgraded to Finchley.RELEASE and Springboot...












0















I am getting "Failed to determine a suitable driver class" when upgraded to Finchley.RELEASE and Springboot 2.0.5.RELEASE



BootStrap.yml looks like



spring:
application:
name: OutboundEventEngine
cloud:
consul:
config:
enabled: true
defaultContext: ZygrateOutboundService
profileSeparator: '::'
watched:
enabled: true
prefix: DEV
host: 127.0.0.1
port: 8500



Error logs:




Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:126) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:86) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:413) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:174) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:179) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
... 8 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthEndpoint]: Factory method 'healthEndpoint' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$fd6c45dc]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Post-processing of FactoryBean's singleton object failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class


It works with Dalston.SR4 and Springboot 1.5.10.RELEASE.
Thanks !!!










share|improve this question

























  • upvoted since it does not deserve downvote. Please provide question in post of what exactly you need help with, even if it is obviously implied. It has to be explicit.

    – Sarief
    Nov 20 '18 at 8:43











  • My best guess is that some library is not loaded properly. Can you provide pom.xml? also, did you update all related libraries specified in maven of the updated library?

    – Sarief
    Nov 20 '18 at 8:44











  • Is that your full app yml? It's trying to init a datasource and doesn't know what kind.

    – Darren Forsythe
    Nov 20 '18 at 8:51











  • Please provide a sample app that reproduces the problem.

    – Ryan Baxter
    Nov 20 '18 at 15:54
















0















I am getting "Failed to determine a suitable driver class" when upgraded to Finchley.RELEASE and Springboot 2.0.5.RELEASE



BootStrap.yml looks like



spring:
application:
name: OutboundEventEngine
cloud:
consul:
config:
enabled: true
defaultContext: ZygrateOutboundService
profileSeparator: '::'
watched:
enabled: true
prefix: DEV
host: 127.0.0.1
port: 8500



Error logs:




Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:126) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:86) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:413) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:174) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:179) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
... 8 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthEndpoint]: Factory method 'healthEndpoint' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$fd6c45dc]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Post-processing of FactoryBean's singleton object failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class


It works with Dalston.SR4 and Springboot 1.5.10.RELEASE.
Thanks !!!










share|improve this question

























  • upvoted since it does not deserve downvote. Please provide question in post of what exactly you need help with, even if it is obviously implied. It has to be explicit.

    – Sarief
    Nov 20 '18 at 8:43











  • My best guess is that some library is not loaded properly. Can you provide pom.xml? also, did you update all related libraries specified in maven of the updated library?

    – Sarief
    Nov 20 '18 at 8:44











  • Is that your full app yml? It's trying to init a datasource and doesn't know what kind.

    – Darren Forsythe
    Nov 20 '18 at 8:51











  • Please provide a sample app that reproduces the problem.

    – Ryan Baxter
    Nov 20 '18 at 15:54














0












0








0


1






I am getting "Failed to determine a suitable driver class" when upgraded to Finchley.RELEASE and Springboot 2.0.5.RELEASE



BootStrap.yml looks like



spring:
application:
name: OutboundEventEngine
cloud:
consul:
config:
enabled: true
defaultContext: ZygrateOutboundService
profileSeparator: '::'
watched:
enabled: true
prefix: DEV
host: 127.0.0.1
port: 8500



Error logs:




Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:126) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:86) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:413) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:174) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:179) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
... 8 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthEndpoint]: Factory method 'healthEndpoint' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$fd6c45dc]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Post-processing of FactoryBean's singleton object failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class


It works with Dalston.SR4 and Springboot 1.5.10.RELEASE.
Thanks !!!










share|improve this question
















I am getting "Failed to determine a suitable driver class" when upgraded to Finchley.RELEASE and Springboot 2.0.5.RELEASE



BootStrap.yml looks like



spring:
application:
name: OutboundEventEngine
cloud:
consul:
config:
enabled: true
defaultContext: ZygrateOutboundService
profileSeparator: '::'
watched:
enabled: true
prefix: DEV
host: 127.0.0.1
port: 8500



Error logs:




Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:126) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:86) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:413) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:174) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:179) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152) ~[outbound-event-engine.jar:1.0.18-SNAPSHOT]
... 8 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthEndpoint]: Factory method 'healthEndpoint' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$fd6c45dc]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Post-processing of FactoryBean's singleton object failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class


It works with Dalston.SR4 and Springboot 1.5.10.RELEASE.
Thanks !!!







java spring spring-boot spring-cloud spring-cloud-config






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 '18 at 8:10







Shah Sharad

















asked Nov 20 '18 at 8:03









Shah SharadShah Sharad

62




62













  • upvoted since it does not deserve downvote. Please provide question in post of what exactly you need help with, even if it is obviously implied. It has to be explicit.

    – Sarief
    Nov 20 '18 at 8:43











  • My best guess is that some library is not loaded properly. Can you provide pom.xml? also, did you update all related libraries specified in maven of the updated library?

    – Sarief
    Nov 20 '18 at 8:44











  • Is that your full app yml? It's trying to init a datasource and doesn't know what kind.

    – Darren Forsythe
    Nov 20 '18 at 8:51











  • Please provide a sample app that reproduces the problem.

    – Ryan Baxter
    Nov 20 '18 at 15:54



















  • upvoted since it does not deserve downvote. Please provide question in post of what exactly you need help with, even if it is obviously implied. It has to be explicit.

    – Sarief
    Nov 20 '18 at 8:43











  • My best guess is that some library is not loaded properly. Can you provide pom.xml? also, did you update all related libraries specified in maven of the updated library?

    – Sarief
    Nov 20 '18 at 8:44











  • Is that your full app yml? It's trying to init a datasource and doesn't know what kind.

    – Darren Forsythe
    Nov 20 '18 at 8:51











  • Please provide a sample app that reproduces the problem.

    – Ryan Baxter
    Nov 20 '18 at 15:54

















upvoted since it does not deserve downvote. Please provide question in post of what exactly you need help with, even if it is obviously implied. It has to be explicit.

– Sarief
Nov 20 '18 at 8:43





upvoted since it does not deserve downvote. Please provide question in post of what exactly you need help with, even if it is obviously implied. It has to be explicit.

– Sarief
Nov 20 '18 at 8:43













My best guess is that some library is not loaded properly. Can you provide pom.xml? also, did you update all related libraries specified in maven of the updated library?

– Sarief
Nov 20 '18 at 8:44





My best guess is that some library is not loaded properly. Can you provide pom.xml? also, did you update all related libraries specified in maven of the updated library?

– Sarief
Nov 20 '18 at 8:44













Is that your full app yml? It's trying to init a datasource and doesn't know what kind.

– Darren Forsythe
Nov 20 '18 at 8:51





Is that your full app yml? It's trying to init a datasource and doesn't know what kind.

– Darren Forsythe
Nov 20 '18 at 8:51













Please provide a sample app that reproduces the problem.

– Ryan Baxter
Nov 20 '18 at 15:54





Please provide a sample app that reproduces the problem.

– Ryan Baxter
Nov 20 '18 at 15:54












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53388612%2fgetting-failed-to-determine-a-suitable-driver-class-when-upgraded-to-finchley%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53388612%2fgetting-failed-to-determine-a-suitable-driver-class-when-upgraded-to-finchley%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents