Skip to content

Commit f3ccfd0

Browse files
author
Cephas Lin
committed
resolve conflict
1 parent 81e224a commit f3ccfd0

22 files changed

+42
-37
lines changed

.openpublishing.redirection.app-service.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,12 @@
552552
},
553553
{
554554
"source_path_from_root": "/articles/app-service/containers/configure-language-java.md",
555-
"redirect_url": "/azure/app-service/configure-language-java?pivots=platform-linux",
555+
"redirect_url": "/azure/app-service/configure-language-java-deploy-run?pivots=platform-linux",
556+
"redirect_document_id": false
557+
},
558+
{
559+
"source_path_from_root": "/articles/app-service/configure-language-java.md",
560+
"redirect_url": "/azure/app-service/configure-language-java-deploy-run",
556561
"redirect_document_id": false
557562
},
558563
{

articles/app-service/configure-authentication-user-identities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public static class ClaimsPrincipalParser
123123

124124
### Framework-specific alternatives
125125

126-
For ASP.NET 4.6 apps, App Service populates [ClaimsPrincipal.Current](/dotnet/api/system.security.claims.claimsprincipal.current) with the authenticated user's claims, so you can follow the standard .NET code pattern, including the `[Authorize]` attribute. Similarly, for PHP apps, App Service populates the `_SERVER['REMOTE_USER']` variable. For Java apps, the claims are [accessible from the Tomcat servlet](configure-language-java.md#authenticate-users-easy-auth).
126+
For ASP.NET 4.6 apps, App Service populates [ClaimsPrincipal.Current](/dotnet/api/system.security.claims.claimsprincipal.current) with the authenticated user's claims, so you can follow the standard .NET code pattern, including the `[Authorize]` attribute. Similarly, for PHP apps, App Service populates the `_SERVER['REMOTE_USER']` variable. For Java apps, the claims are [accessible from the Tomcat servlet](configure-language-java-security.md#authenticate-users-easy-auth).
127127

128128
For [Azure Functions](../azure-functions/functions-overview.md), `ClaimsPrincipal.Current` isn't populated for .NET code, but you can still find the user claims in the request headers, or get the `ClaimsPrincipal` object from the request context or even through a binding parameter. For more information, see [Working with client identities in Azure Functions](../azure-functions/functions-bindings-http-webhook-trigger.md#working-with-client-identities).
129129

articles/app-service/configure-common.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Other language stacks, likewise, get the app settings as environment variables a
3434
- [Node.js](configure-language-nodejs.md#access-environment-variables)
3535
- [PHP](configure-language-php.md#access-environment-variables)
3636
- [Python](configure-language-python.md#access-app-settings-as-environment-variables)
37-
- [Java](configure-language-java.md#configure-data-sources)
37+
- [Java](configure-language-java-data-sources.md#configure-data-sources)
3838
- [Custom containers](configure-custom-container.md#configure-environment-variables)
3939

4040
App settings are always encrypted when stored (encrypted-at-rest).
@@ -229,7 +229,7 @@ For example, a MySQL connection string named *connectionstring1* can be accessed
229229
- [Node.js](configure-language-nodejs.md#access-environment-variables)
230230
- [PHP](configure-language-php.md#access-environment-variables)
231231
- [Python](configure-language-python.md#access-environment-variables)
232-
- [Java](configure-language-java.md#configure-data-sources)
232+
- [Java](configure-language-java-data-sources.md)
233233
- [Custom containers](configure-custom-container.md#configure-environment-variables)
234234

235235
Connection strings are always encrypted when stored (encrypted-at-rest).
@@ -413,7 +413,7 @@ It's not possible to edit connection strings in bulk by using a JSON file with A
413413
- [Node.js](configure-language-nodejs.md)
414414
- [PHP](configure-language-php.md)
415415
- [Python](configure-language-python.md)
416-
- [Java](configure-language-java.md)
416+
- [Java](configure-language-java-deploy-run.md)
417417

418418
<a name="alwayson"></a>
419419

articles/app-service/configure-language-java-apm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to configure APM platforms, such as Application Insights,
44
keywords: azure app service, web app, windows, oss, java, tomcat, jboss, spring boot, quarkus
55
ms.devlang: java
66
ms.topic: article
7-
ms.date: 05/14/2024
7+
ms.date: 07/17/2024
88
ms.custom: devx-track-java, devx-track-azurecli, devx-track-extended-java, linux-related-content
99
zone_pivot_groups: app-service-java-hosting
1010
adobe-target: true

articles/app-service/configure-language-java-data-sources.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: Configure data sources for Tomcat, JBoss, or Java SE apps
3-
description: Learn how to configure data sources for Tomcat, JBoss, or Java SE apps on Azure App Service.
3+
description: Learn how to configure data sources for Tomcat, JBoss, or Java SE apps on Azure App Service. You'll find instructions for native Windows and Linux container variants.
44
keywords: azure app service, web app, windows, oss, java, tomcat, jboss
55
ms.devlang: java
66
ms.topic: article
7-
ms.date: 05/21/2024
7+
ms.date: 07/17/2024
88
ms.custom: devx-track-java, devx-track-azurecli, devx-track-extended-java, linux-related-content
99
zone_pivot_groups: app-service-java-hosting
1010
adobe-target: true
@@ -26,7 +26,7 @@ To connect to data sources in Spring Boot applications, we suggest creating conn
2626

2727
This connection string is accessible to our application as an environment variable named `CUSTOMCONNSTR_<your-string-name>`. For example, `CUSTOMCONNSTR_exampledb`.
2828

29-
2. In your *application.properties* file, reference this connection string with the environment variable name. For our example, we would use the following.
29+
2. In your *application.properties* file, reference this connection string with the environment variable name. For our example, we would use the following code:
3030

3131
```yml
3232
app.datasource.url=${CUSTOMCONNSTR_exampledb}
@@ -99,7 +99,7 @@ Next, determine if the data source should be available to one application or to
9999
You can't directly modify a Tomcat installation for server-wide configuration because the installation location is read-only. To make server-level configuration changes to your Windows Tomcat installation, the simplest way is to do the following on app start:
100100

101101
1. Copy Tomcat to a local directory (`%LOCAL_EXPANDED%`) and use that as `CATALINA_BASE` (see [Tomcat documentation on this variable](https://tomcat.apache.org/tomcat-10.1-doc/introduction.html)).
102-
1. Add your shared data sources to `%LOCAL_EXPANDED%\tomcat\conf\server.xml` using XSL tranform.
102+
1. Add your shared data sources to `%LOCAL_EXPANDED%\tomcat\conf\server.xml` using XSL transform.
103103

104104
#### Add a startup file
105105

@@ -182,7 +182,7 @@ This PowerShell completes the following steps:
182182

183183
1. Check whether a custom Tomcat copy exists already. If it does, the startup script can end here.
184184
2. Copy Tomcat locally.
185-
3. Add shared data sources to the custom Tomcat's configuration using XSL tranform.
185+
3. Add shared data sources to the custom Tomcat's configuration using XSL transform.
186186
4. Indicate that configuration was successfully completed.
187187

188188
#### Add XSL transform file
@@ -281,11 +281,11 @@ az webapp deploy --resource-group <group-name> --name <app-name> --src-path <jar
281281

282282
# [Linux](#tab/linux)
283283

284-
Adding a shared, server-level data source requires you to edit Tomcat's server.xml. The most reliable way to do this is as follow:
284+
Adding a shared, server-level data source requires you to edit Tomcat's server.xml. The most reliable way to do this is as follows:
285285

286286
1. Upload a [startup script](./faq-app-service-linux.yml) and set the path to the script in **Configuration** > **Startup Command**. You can upload the startup script using [FTP](deploy-ftp.md).
287287

288-
Your startup script will make an [xsl transform](https://www.w3schools.com/xml/xsl_intro.asp) to the server.xml file and output the resulting xml file to `/usr/local/tomcat/conf/server.xml`. The startup script should install libxslt via apk. Your xsl file and startup script can be uploaded via FTP. Below is an example startup script.
288+
Your startup script makes an [xsl transform](https://www.w3schools.com/xml/xsl_intro.asp) to the server.xml file and output the resulting xml file to `/usr/local/tomcat/conf/server.xml`. The startup script should install libxslt via apk. Your xsl file and startup script can be uploaded via FTP. Below is an example startup script.
289289

290290
```sh
291291
# Install libxslt. Also copy the transform file to /home/tomcat/conf/
@@ -367,7 +367,7 @@ Finally, place the driver JARs in the Tomcat classpath and restart your App Serv
367367
az webapp deploy --resource-group <group-name> --name <app-name> --src-path <jar-name>.jar --type=lib --path <jar-name>.jar
368368
```
369369

370-
If you created a server-level data source, restart the App Service Linux application. Tomcat will reset `CATALINA_BASE` to `/home/tomcat` and use the updated configuration.
370+
If you created a server-level data source, restart the App Service Linux application. Tomcat resets `CATALINA_BASE` to `/home/tomcat` and uses the updated configuration.
371371

372372
---
373373

articles/app-service/configure-language-java-deploy-run.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: Deploy and configure Tomcat, JBoss, or Java SE apps
3-
description: Learn how to deploy and configure Tomcat, JBoss, or Java SE apps to run on Azure App Service.
3+
description: Learn how to deploy Tomcat, JBoss, or Java SE apps to run on Azure App Service and perform common tasks like setting Java versions and configuring logging.
44
keywords: azure app service, web app, windows, oss, java, tomcat, jboss, spring boot, quarkus
55
ms.devlang: java
66
ms.topic: article
7-
ms.date: 05/14/2024
7+
ms.date: 07/17/2024
88
ms.custom: devx-track-java, devx-track-azurecli, devx-track-extended-java, linux-related-content
99
zone_pivot_groups: app-service-java-hosting
1010
adobe-target: true
@@ -220,7 +220,7 @@ All Java runtimes on App Service come with the Java Flight Recorder. You can use
220220
221221
To take a timed recording, you need the PID (Process ID) of the Java application. To find the PID, open a browser to your web app's SCM site at `https://<your-site-name>.scm.azurewebsites.net/ProcessExplorer/`. This page shows the running processes in your web app. Find the process named "java" in the table and copy the corresponding PID (Process ID).
222222
223-
Next, open the **Debug Console** in the top toolbar of the SCM site and run the following command. Replace `<pid>` with the process ID you copied earlier. This command starts a 30-second profiler recording of your Java application and generate a file named `timed_recording_example.jfr` in the `C:\home` directory.
223+
Next, open the **Debug Console** in the top toolbar of the SCM site and run the following command. Replace `<pid>` with the process ID you copied earlier. This command starts a 30-second profiler recording of your Java application and generates a file named `timed_recording_example.jfr` in the `C:\home` directory.
224224
225225
```
226226
jcmd <pid> JFR.start name=TimedRecording settings=profile duration=30s filename="C:\home\timed_recording_example.JFR"
@@ -269,7 +269,7 @@ Use [FTPS](deploy-ftp.md) to download your JFR file to your local machine. To an
269269

270270
# [Windows](#tab/windows)
271271

272-
Enable [application logging](troubleshoot-diagnostic-logs.md#enable-application-logging-windows) through the Azure portal or [Azure CLI](/cli/azure/webapp/log#az-webapp-log-config) to configure App Service to write your application's standard console output and standard console error streams to the local filesystem or Azure Blob Storage. Logging to the local App Service filesystem instance is disabled 12 hours after it's configured. If you need longer retention, configure the application to write output to a Blob storage container.
272+
Enable [application logging](troubleshoot-diagnostic-logs.md#enable-application-logging-windows) through the Azure portal or [Azure CLI](/cli/azure/webapp/log#az-webapp-log-config) to configure App Service to write your application's standard console output and standard console error streams to the local filesystem or Azure Blob Storage. Logging to the local App Service filesystem instance is disabled 12 hours after you enable it. If you need longer retention, configure the application to write output to a Blob storage container.
273273

274274
::: zone pivot="java-javase,java-tomcat"
275275

@@ -473,7 +473,7 @@ When you create an app with built-in Tomcat to host your Java workload (a WAR fi
473473

474474
Additionally, there are certain transformations that are further applied on top of the server.xml for Tomcat distribution upon start. These are transformations to the Connector, Host, and Valve settings.
475475

476-
Note that the latest versions of Tomcat have server.xml (8.5.58 and 9.0.38 onward). Older versions of Tomcat don't use transforms and might have different behavior as a result.
476+
The latest versions of Tomcat have server.xml (8.5.58 and 9.0.38 onward). Older versions of Tomcat don't use transforms and might have different behavior as a result.
477477

478478
### Connector
479479

articles/app-service/configure-language-java-security.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: Configure security for Tomcat, JBoss, or Java SE apps
3-
description: Learn how to configure security for Tomcat, JBoss, or Java SE apps on Azure App Service.
3+
description: Learn how to configure security for Tomcat, JBoss, or Java SE apps on Azure App Service, such as authentication, Key Vault references, and Java key store.
44
keywords: azure app service, web app, windows, oss, java, tomcat, jboss
55
ms.devlang: java
66
ms.topic: article
7-
ms.date: 05/13/2024
7+
ms.date: 07/17/2024
88
ms.custom: devx-track-java, devx-track-azurecli, devx-track-extended-java, linux-related-content
99
zone_pivot_groups: app-service-java-hosting
1010
adobe-target: true
@@ -14,7 +14,7 @@ ms.author: cephalin
1414

1515
# Configure security for a Tomcat, JBoss, or Java SE app in Azure App Service
1616

17-
This article shows how to confgure Java-specific security settings in App Service. Java applications running in App Service have the same set of [security best practices](../security/fundamentals/paas-applications-using-app-services.md) as other applications.
17+
This article shows how to configure Java-specific security settings in App Service. Java applications running in App Service have the same set of [security best practices](../security/fundamentals/paas-applications-using-app-services.md) as other applications.
1818

1919
[!INCLUDE [java-variants](includes/configure-language-java/java-variants.md)]
2020

articles/app-service/deploy-authentication-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Azure App Service lets you deploy your web application code and configuration by
3434
|Run directly from an uploaded ZIP file |Microsoft Entra |[Run your app in Azure App Service directly from a ZIP package](deploy-run-package.md) |
3535
|Run directly from external URL |Not applicable (outbound connection) |[Run from external URL instead](deploy-run-package.md#run-from-external-url-instead) |
3636
|Azure Web app plugin for Maven (Java) |Microsoft Entra |[Quickstart: Create a Java app on Azure App Service](quickstart-java.md)|
37-
|Azure WebApp Plugin for Gradle (Java) |Microsoft Entra |[Configure a Java app for Azure App Service](configure-language-java.md)|
37+
|Azure WebApp Plugin for Gradle (Java) |Microsoft Entra |[Configure a Java app for Azure App Service](configure-language-java-deploy-run.md)|
3838
|Webhooks | Basic authentication |[Web hooks](https://github.com/projectkudu/kudu/wiki/Web-hooks) |
3939
|App Service migration assistant |Basic authentication |[Azure App Service migration tools](https://azure.microsoft.com/products/app-service/migration-tools/) |
4040
|App Service migration assistant for PowerShell scripts |Basic authentication |[Azure App Service migration tools](https://azure.microsoft.com/products/app-service/migration-tools/) |

articles/app-service/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ zone_pivot_groups: app-service-getting-started-stacks
5757
| Action | Resources |
5858
| --- | --- |
5959
| **Create your first Java app** | Using one of the following tools:<br><br>- [Maven deploy with an embedded web server](./quickstart-java.md?pivots=java-javase)<br>- [Maven deploy to a Tomcat server](./quickstart-java.md?pivots=java-tomcat)<br>- [Maven deploy to a JBoss server](./quickstart-java.md?pivots=java-jboss) |
60-
| **Deploy your app** | - [With Maven](configure-language-java.md?pivots=platform-linux#maven)<br>- [With Gradle](configure-language-java.md?pivots=platform-linux#gradle)<br>- [Deploy War](./deploy-zip.md?tabs=cli#deploy-warjarear-packages)<br>- [With popular IDEs (VS Code, IntelliJ, and Eclipse)](configure-language-java.md?pivots=platform-linux#ides)<br>- [Deploy WAR or JAR packages directly](./deploy-zip.md?tabs=cli#deploy-warjarear-packages)<br>- [With GitHub Actions](./deploy-github-actions.md) |
60+
| **Deploy your app** | - [With Maven](configure-language-java-deploy-run.md?pivots=platform-linux#maven)<br>- [With Gradle](configure-language-java-deploy-run.md?pivots=platform-linux#gradle)<br>- [Deploy War](./deploy-zip.md?tabs=cli#deploy-warjarear-packages)<br>- [With popular IDEs (VS Code, IntelliJ, and Eclipse)](configure-language-java-deploy-run.md?pivots=platform-linux#ides)<br>- [Deploy WAR or JAR packages directly](./deploy-zip.md?tabs=cli#deploy-warjarear-packages)<br>- [With GitHub Actions](./deploy-github-actions.md) |
6161
| **Monitor your app**| - [Log stream](./troubleshoot-diagnostic-logs.md#stream-logs)<br>- [Diagnose and solve tool](./overview-diagnostics.md)|
6262
| **Add domains & certificates** |- [Map a custom domain](./app-service-web-tutorial-custom-domain.md?tabs=root%2Cazurecli)<br>- [Add SSL certificate](./configure-ssl-certificate.md)|
6363
| **Connect to a database** |- [Java Spring with Cosmos DB](./tutorial-java-spring-cosmosdb.md)|

articles/app-service/includes/quickstart-java/quickstart-java-javase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The quickstart deploys either a Spring Boot app, embedded Tomcat, or Quarkus app
2929
-----
3030

3131
If Maven isn't your preferred development tool, check out our similar tutorials for Java developers:
32-
+ [Gradle](../../configure-language-java.md?pivots=platform-linux#gradle)
32+
+ [Gradle](../../configure-language-java-deploy-run.md?pivots=platform-linux#gradle)
3333
+ [IntelliJ IDEA](/azure/developer/java/toolkit-for-intellij/create-hello-world-web-app)
3434
+ [Eclipse](/azure/developer/java/toolkit-for-eclipse/create-hello-world-web-app)
3535
+ [Visual Studio Code](https://code.visualstudio.com/docs/java/java-webapp)

0 commit comments

Comments
 (0)