'how to build and deploy a war file in cmd?

i would like to deploy manually the war file of my project on tomcat (inside my computer). what i did is build the war file with the command jar -cvf NAME.war *. when i place it inside the webapps folder and launch the localhost:port/NAME/login i get this error :

on this picture

but when i run the same project in my eclipse, it works very well. Is there a particular option i have to put when i build the war file? or is there a particular path to where i should build it? for information i build the war file at the project's root.



Sources

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

Source: Stack Overflow

Solution Source