'Tomcat war file deployment fails

When I am deploying my web app in tomcat by going to webapps it is being deployed and status is also showing true but when I am deploying same app by creating war file using console deployment its failing by giving an error. And also not showing in applications list

FAIL - War file already exists on server....



Solution 1:[1]

I've had this problem before, but, for me, the app was not listed in the applications list in Tomcat Web Application Manager. I had to open a terminal and delete the directory and war file from the webapps directory. For me the webapps was at /var/lib/tomcat/webapps.

Solution 2:[2]

In my case it was code compilation error x.y.z Class not found Exception

Please check the tomcat logs

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Joel MacKenzie
Solution 2 sandeep shete