Add a Java application to Azure App Service Web Apps

Once you have initialized your Java web app in Azure App Service as documented at Create a Java web app in Azure App Service, 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 Web Apps instance.

  • If you set up your web app by using the Azure Marketplace, 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 Web Apps instance.
  • If you set up your web app by using the Azure configuration UI, the path to the webapps folder is in the form d:\home\site\wwwroot\webapps.

Note that you can use source control to upload your application or web pages, including continuous integration scenarios. FTP is also an option for uploading your application or web pages; for more information about deploying your applications over FTP, see Deploy your app using FTP.

Note for Tomcat web apps: 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 web apps running on Azure is based on a new WAR file being added, or new files or directories added to the webapps folder.

See Also

For more information about using Azure with Java, see the Azure Java Developer Center.

application-insights-app-insights-java-get-started