I\'m trying to convert a simple Spring Boot app into a war file for deployment to my tomcat server but I keep on getting this error:
Caused by: org.springframewo
Why are your trying to configure embedded Tomcat when you want to deploy it on external container? I had similar problem and what finally worked for me was to completely exclude tomcat starter from the project dependencies. Since spring-boot-starter-tomcat
is dependency of spring-boot-starter-web
use something like this:
compile ('org.springframework.boot:spring-boot-starter-web') {
exclude module: 'spring-boot-starter-tomcat'
}
And, of course, delete line that explicitly imports spring-boot-starter-tomcat
(it's not needed, even in embedded mode).
You may have a problem if you want your app to be deployable in both ways - I didn't have to worry about this in my case.