I'd like to connect MySQL (ver: 8.0.11) to Spring for DB processing, but when I start Tomcat, the console displays the following error: "Context startup failed due to an earlier error."
Warning: Exception encountered during context initialization-cancelling refresh attempt [Wednesday 70400:05:17 GMT+09:00 2018]
Critical: Context initialization failed [Wednesday 700:05:17 GMT + 09:00 2018]
Critical: Exception sending context initialization event to listener instance in class org.springframework.web.context.ContextLoaderListener [Wednesday 700:05:17 GMT+09:00 2018]
Critical: One or more listeners failed to start. Full details will be found in the approve container log file [Wednesday 70400:05:17 GMT+09:00 2018]
Critical: Context startup failed due to previous error [/SampleSpringTest] [Wednesday 70400:05:17 GMT+09:00 2018]
I have confirmed that DBViewer on eclipse can connect properly and run SQL.How should we deal with this?"The ""pom.xml"" has the following description, but is that the cause?"
● pom.xml
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>4.2.4.RELEASE</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.11</version>
</dependency>
As you can see in the console output,
One or more listeners failed to start.
There is some error starting the listener.Also,
Full details will be found in the approve container log file
Please check the log in $CATALINA_HOME/logs
(*).If you don't understand what the error in the output means, please edit and add the question.
*If you have changed the log output address, please check it.
© 2024 OneMinuteCode. All rights reserved.