you can download tomcat from here
http://tomcat.apache.org/[
^] if thats what you're asking for the first part of your question. On the left hand side of that page, are links to documentation - I'd read that and come back with a more specific question than 'How web server runs .war file?' - thats too broad a question to be answered here