I am using intellij CE to create the WAR, and deploying the war externally using tomcat deployment manager. This works for testing the application however I still couldnt find the way to debug it.
- open cmd and current dir to tomcat/bin.
- you can start and stop the server using the batch files start.bat and shutdown.bat.
- Now build your app using mvn goal in intellij.
- Open localhost:8080/ **Your port number may differ.
- Use this tomcat application to deploy the application, If you get the authentication error, you would need to set the credentials under conf/tomcat-users.xml.