Once you have initialized your Java website as documented at Get started with Microsoft Azure Web Sites and Java, you can upload your application by placing your WAR in the webapps folder.
The navigation path to the webapps folder differs based on how you set up your website.
- If you set up your website by using the Azure application gallery, the path to the webapps folder is in the form d:\home\site\wwwroot\bin\application_server\webapps, where application_server is the name of the application server in effect for your website.
- If you set up your website by using the Azure configuration UI, the path to the webapps folder is in the formd:\home\site\wwwroot\webapps.
Note that you can use source control to upload your application or web pages, including in continuous integration scenarios. Instructions for using source control with your website are available at Publishing from Source Control to Azure Web Sites. FTP is also an option for uploading your application or web pages.
Note for Tomcat websites: Once you've uploaded your WAR file to the webapps folder, the Tomcat application server will detect that you've added it and will automatically load it. Note that if you copy files (other than WAR files) to the ROOT directory, the application server will need to be restarted before those files are used. The autoload functionality for the Tomcat Java websites running on Azure is based on a new WAR file being added, or new files or directories added to the webapps folder.