The entry point of a war is not a main method like it is for an application. The entry point of a war would be the web.xml, which is read by the application server and used to map urls to servlets.
If you really need to test a war, you could use an embedded application server like Jetty.