Skip to content
Advertisement

Spring app on Tomcat – Application at context path /web-customer-rest-demo could not be started

And it’s Tomcat all over again. I’m trying to run a Spring project on Tomcat, the build stage is fine, but I keep getting this deploy error. The content of config files follows: MySpringMvcDispatcherServletInitializer.java

JavaScript

DemoAppConfig.java

JavaScript

Tomcat log

JavaScript

web-customer-rest-demo.xml

JavaScript

pom.xml

JavaScript

“It looks like your post is mostly code; please add some more details.” Who made this sh*t up, I wonder?

Advertisement

Answer

The missing class org.springframework.core.metrics.ApplicationStartup belongs to spring-core and appeared in version 5.3.

As it appears from your pom.xml you have spring-context in version 5.3.9, which has a dependency on spring-core of the same version. However Maven must be choosing version 5.0.6.RELEASE, which is a dependency of your other Spring dependencies.

Advertisement