Apologies for the delay from over the weekend.
1/2
Thanks for the follow-up and update. I understand your WebApp works fine on Windows but not on Linux.
By default, App Service expects your JAR application to be named app.jar. If it has this name, it will be run automatically. For Maven users, you can set the JAR name by including <finalName>app</finalName> in the <build> section of your pom.xml
Review pom.xml & verifiy the packaging type is “war” and spring-boot-starter-tomcat is set to “provided”
To use a different name for your JAR, you must also provide the Startup Command
that executes your JAR file.
For example, java -jar my-jar-app.jar. You can set the value for your Startup Command in the Portal, under Configuration > General Settings, or with an Application Setting named STARTUP_COMMAND.
Tomcat: the location of a script to perform any necessary configurations (for example, /home/site/deployments/tools/startup_script.sh)
Java SE: the command to start your JAR app
(for example, java -jar /home/site/wwwroot/app.jar --server.port=80)
Azure will automatically map Internet requests to embedded Tomcat server that is running on the port - 80. However, if you configured your embedded Tomcat server to run on port - 8080 or custom port, you need to add an environment variable to your web app that defines the port for your embedded Tomcat server.
In the Application settings section, add a new setting named WEBSITES_PORT
and enter your custom port number for the value.