Source editor with cursor on

Getting Started with Java Web development

This tutorial shows how to create a Java web app in Azure App Service by using the Azure Portal. The Azure Portal is a web interface that you can use to manage Azure resources.

There are several ways you can set up a Java application in an App Service web app.

This section shows how to create a web app and configure it for Java using the Application settings blade of the portal.

Click New > Web + Mobile > Web App.

Enter a name for the web app in the Web app box.

This name must be unique in the azurewebsites.net domain because the URL of the web app will be {name}.azurewebsites.net. If the name you enter isn't unique, a red exclamation mark appears in the text box.

Select a Resource Group or create a new one.

Select an App Service plan/Location or create a new one.

Click Create.

When the web app has been created, click Web Apps > {your web app}.

In the Web app blade, click Settings.

Click Application settings.

Choose the desired Java version.

Choose the desired Java minor version. If you select Newest, your app will use the newest minor version that is available in App Service for that Java major version. The Newest item is unique to Java apps created from the the Application settings. If you create your Java app from the gallery then you have to manage your own container and JVM changes.

Choose the desired Web container. If you select a container name that starts with Newest, your app will be kept at the latest version of that web container major version that is available in App Service.

Click Save.

Within a few moments, your web app will become Java-based and configured to use the web container you selected.

Click Web apps > {your new web app}.

Click the URL to browse to the new site.

The web page confirms that you have created a Java-based web app.

This section shows how to use the Azure Marketplace to create a Java web app. The same general flow can also be used to create a Java-based mobile or API app.

Click New > Marketplace.

Click Web + Mobile.

You might have to scroll left to see the Marketplace blade where you can select Web + Mobile.

In the search text box, enter the name of a Java application server, such as Apache Tomcat or Jetty, and then press Enter.

In the search results, click the Java application server.

In the first Apache Tomcat or Jetty blade, click Create.

In the next Apache Tomcat or Jetty blade, enter a name for the web app in the Web app box.

In a short time, typically less than a minute, Azure finishes creating the new web app.

Click Web apps > {your new web app}.

Tomcat ships with a default set of pages so if you chose Tomcat, you see a page similar to the following example.

If you chose Jetty, you see a page similar to the following example. Jetty doesn’t have a default page set, so the same JSP that is used for an empty Java site is reused here.

Source: azure.microsoft.com
RELATED VIDEO
Getting started with web development : How to make a website
Getting started with web development : How to make a website
Getting Started with Java Web Development - Part 2
Getting Started with Java Web Development - Part 2
AribaWeb: Getting Started
AribaWeb: Getting Started
RELATED FACTS
Share this Post

Related posts

Choosing BI Solution: Tibco Spotfire or Tableau?

Choosing BI Solution: Tibco Spotfire or Tableau?

OCTOBER 17, 2017

Recently Business Intelligence (BI) is gaining increasing importance among successful companies. Business Intelligence allows…

Read More
Java Web development books

Java Web development books

OCTOBER 17, 2017

In the last few months I noticed that I’ve been recommending the same books again and again to new and also to experienced…

Read More