locked
Azure Web-app .WAR File deployed to TOMCAT give 404 ERROR RRS feed

  • Question

  • I have created a Microsoft azure web app and configured java version 8 and tomcat 9 (Auto update). As per their documentation , I have uploaded my WAR file using KUDU in the web-app folder (ROOT.war my file name).

    When I created the web-app without the deployment it did render the home page as Java TomCat Ready and as soon as I have deployed the ROOT.War file in my new Resource group it is now giving me 404 error.

    The sub-status is 404 -"0" and I am not sure what has gone wrong the same deployment was working yesterday in the same resource group and now if I try to browse the URL of my web-app I get 404 error. I have done all sorts of research and trials but no help. Can someone help me where I can find n fix this one?


    Ana

    Wednesday, April 24, 2019 9:49 PM

Answers

  • Thank you Dashleen,

    I had deployed using wardeploy (AZ CLI) as well but same thing. Finally something came to my help and that was the CATLENA LOGS under the Logs (using KUDU portal)-->> Application Logs.

    Issue was with the DATABASE Connection to my Azure Postgres SQL which had SSL REQUIRED enabled. The Application settings for the WAR File web-app needed the SSL setting in the connection string. Fixing that fixed my issue.

    NEEDED the SSL=TRUE

    ${POSTGRES_URL} =.

    jdbc:postgresql://abcd-corp-chatbotpgsql.postgres.database.azure.com:5432/chatbotsqldb?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory


    Ana

    • Marked as answer by Ketaanh Shah Thursday, April 25, 2019 11:53 AM
    Thursday, April 25, 2019 11:52 AM

All replies

  • Hi 

    It looks like the deployment has failed. Can you test the deployment using https://github.com/projectkudu/kudu/wiki/Deploying-WAR-files-using-wardeploy.

    Please enable the diagnostics logs so that we can check the catalina log and localhost log. 

    It should be under: D:\home\site\LogFiles\Application. 
    Catalina log will show it there were any errors during deployment; ideally there shouldn't be any errors here
    Thursday, April 25, 2019 9:39 AM
  • Thank you Dashleen,

    I had deployed using wardeploy (AZ CLI) as well but same thing. Finally something came to my help and that was the CATLENA LOGS under the Logs (using KUDU portal)-->> Application Logs.

    Issue was with the DATABASE Connection to my Azure Postgres SQL which had SSL REQUIRED enabled. The Application settings for the WAR File web-app needed the SSL setting in the connection string. Fixing that fixed my issue.

    NEEDED the SSL=TRUE

    ${POSTGRES_URL} =.

    jdbc:postgresql://abcd-corp-chatbotpgsql.postgres.database.azure.com:5432/chatbotsqldb?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory


    Ana

    • Marked as answer by Ketaanh Shah Thursday, April 25, 2019 11:53 AM
    Thursday, April 25, 2019 11:52 AM
  • Thanks Ana for the clarification.

    Glad to know that Catalina logs helped you find the root cause.

    Friday, April 26, 2019 6:25 AM