What is a WAR file and how do I create one?
A WAR (or "web archive") file is simply a packaged webapp directory. It is created using the standard Java jar tool. For example:
cd /home/alex/webapps/mywebapp jar cf ../mywebapp.war *
See also What is a web application (or "webapp")?