tomcat startup issue on windows with intellij-idea

My solution was cleaning all dependency and reinstall it again using this line

mvn clean install

then try to deploy the app again


It was sdk version mismatch for me too but I added 2 steps to make it worked.

  1. Change the JDK version from open configurations where tomcat settings located too Edit Configurations Intellij Settings
  1. Edit Configurations -> change JRE version which is same as step 1

  2. Command Window -> >mvn clean compile

  3. After compile package it by passing tests-> mvn -Dmaven.test.skip=true package

Clean compile is more important than packaging so you can give try to RUN after compile(step 3)


In my case the issue happened because for some reason IntelliJ now wants the war exploded. I solved by going to Run/Debug Configurations; Click in Server tab; in "Before Launch: Build Artifacts"; removing what is there; and adding Build 'your-artifact:war exploded'


I was able to solve the issue by marking the scopes as "provided" in the pom files for spring and other libraries. I also was having an sdk version mismatch issue, but after resolving that I was able to run the site on tomcat without any issues.