title: Container Test1 didn't respond to HTTP pings on port: 80, failing site start Issue -- Azure Linux web service
body: <p>I am using Azure web app service and trying to connect to Azure Postgres database. I am trying to migrate on-premise JAVA application to Azure.</p>
  <p>Using -</p>
  <ul>
  <li>Tomcat version - 9</li>
  <li>JAVA version - 8</li>
  <li>OS - Linux</li>
  <li>Code based</li>
  </ul>
  <p>The below settings have been given in the configuration:</p>
  <p>App Settings:</p>
  <ol>
  <li><p>JAVA_OPTS
  -DPOSTGRESDB_URL=jdbc:postgresql://XXXX.postgres.database.azure.com:5432/postgres?user=XXXX&amp;password=XXXX&amp;sslmode=require</p>
  </li>
  <li><p>WEBSITES_CONTAINER_START_TIME_LIMIT = 1800</p>
  </li>
  <li><p>WEBSITES_PORT = 80 (also tired 8080,2222,3000)</p>
  </li>
  </ol>
  <p>The following has been given in the context.xml file and the war file is built and deployed in the app service:</p>
  <pre><code>&lt;Resource name=&quot;jdbc/XXXX&quot; auth=&quot;Container&quot; type=&quot;javax.sql.DataSource&quot; 
  driverClassName=&quot;org.postgresql.Driver&quot; url=&quot;${POSTGRESDB_URL}&quot; maxTotal=&quot;25&quot; 
  maxIdle=&quot;10&quot; validationQuery=&quot;select 1&quot;/&gt;.
  </code></pre>
  <ul>
  <li>While using the URL to connect to the app, it is giving <strong>application error</strong>.</li>
  <li>In the logs,below error is displayed.
  <strong>Container Test1 didn't respond to HTTP pings on port: 80, failing site start Issue -- Azure Linux web service</strong>.</li>
  </ul>
  <p><strong>NOTE :</strong> When the username and password details of the database are given in the context.xml file directly, the app is working fine. I am facing the issue only when these details are provided in the app service application settings.</p>
  <p>I have checked many posts and followed the provided suggestions in those posts, but the issue is still not resolved. Please provide any inputs how to resolve this error.</p>