title: Tomcat Security Constraint not working
body: <p>After adding https support for tomcat. I am not able to run the application</p>
  
  <p>My web.xml config</p>
  
  
  
  <pre class="lang-xml prettyprint-override"><code>&lt;display-name&gt;EBaySignin&lt;/display-name&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;credentials.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  &lt;security-constraint&gt;
      &lt;web-resource-collection&gt;
          &lt;web-resource-name&gt;All Access&lt;/web-resource-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
          &lt;http-method&gt;GET&lt;/http-method&gt;
          &lt;http-method&gt;POST&lt;/http-method&gt;
      &lt;/web-resource-collection&gt;
      &lt;user-data-constraint&gt;
          &lt;transport-guarantee&gt;CONFIDENTIAL&lt;/transport-guarantee&gt;
      &lt;/user-data-constraint&gt;
  &lt;/security-constraint&gt;
  </code></pre>
  
  <p>(Tomcat)server.xml config:</p>
  
  <pre class="lang-xml prettyprint-override"><code>  &lt;!-- Define a SSL HTTP/1.1 Connector on port 8443
           This connector uses the JSSE configuration, when using APR, the
           connector should be using the OpenSSL style configuration
           described in the APR documentation --&gt;
  
      &lt;Connector port="8443"  SSLEnabled="true"
                 maxThreads="150" scheme="https" secure="true"
          keystoreFile="/Users/ArunAbraham/.keystore" keystorePass="password"
          protocol="org.apache.coyote.http11.Http11NioProtocol" 
                 clientAuth="false" sslProtocol="TLS" /&gt;
  </code></pre>
  
  <p>Now i am unable to access the app, i get an error: Cannot connect to server. What could i be missing ? <code>("https://localhost:8443/EBaySignin/")</code></p>