Issue
I have spring boot application , a microservice
I can run it without any problem as Spring boot application
mvn clean compile spring-boot:run
Now if I try to deploy it in tomcat 9, am getting ClassNotFoundException, shows as if am missing some jar I tried adding the missing jar for one application , but it keeps coming for newer applications. There are no steps involved in here, compile ,test as standadlone, then package and deploy to tomcat.
What could be the issue. I guess the actual log is not needed here as the problem seems to be very generic
Solution
The Answer is simple, plain and stupid. If you face any similar issue, just make sure , you are running a similar version of tomcat.
My spring boot application worked fine, when ran using mvn spring-boot:run
but my actual tomcat server was bit older, so it was missing few libraries.
Upgrading the tomcat version fixed it
Answered By - madhairsilence