question

Aman-8180 avatar image
0 Votes"
Aman-8180 asked Aman-8180 commented

Azure Webapp using Springboot Tomcat, Gradle error

I have deployed my webapp using Github Actions but still it shows

Hey, Java developers!

Your app service is up and running.
Time to take the next step and deploy your code.

My app name is different from ROOT.

I have also tried deploying using WAR file but could not succeed.
From this url
https://docs.microsoft.com/en-us/azure/app-service/deploy-zip#deploy-war-file

azure-webapps
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Please Help,
I tried by placing ROOT.war in webapps folder also, but still getting error.119518-image.png


0 Votes 0 ·
image.png (22.0 KiB)

1 Answer

ryanchill avatar image
1 Vote"
ryanchill answered Aman-8180 commented

Hi @Aman-8180,

The .war file needs to be deployed so it can be extracted by the hosting environment. Try deploying your app using POST request to https://<app-name>.scm.azurewebsites.net/api/wardeploy or using the Azure CLI maven plugin command mvn package azure-webapp:deploy

Check to make sure your code was extracted correctly using the Kudu console. If you don't see your files, use unzip sample.war -d sample to manually unzip the contents. Make sure you've enabled Application Logging (Filesystem) so that you can view the deployment logs. They will be located at D:\home\LogFiles\Application. Check for catalina.yyyy-mm-dd.logs.

· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi ryanchill,
Thankyou for your help.
I tried POST request to https://<app-name>.scm.azurewebsites.net/api/wardeploy to deploy war file.
I have also tried using FTP, Kudu, and Github actions to deploy.
But I am getting same error.

War file is properly extracted in every method.

I can't use maven plugin as I am working with Gradle.

Thankyou, please help.

0 Votes 0 ·

What errors do you see in you app logs @Aman-8180.

0 Votes 0 ·

I see no error,
server runs properly

0 Votes 0 ·
Show more comments