I've run into a very weird problem with Tomcat: My Webapp running on Tomcat 6 works just fine with BASIC auth. However I would like to switch to FORM based auth. But when I change my web.xml from:

&lt;login-config&gt;
    &lt;auth-method&gt;BASIC&lt;/auth-method&gt;
    &lt;realm-name&gt;my realm&lt;/realm-name&gt;
&lt;/login-config&gt;


to this here

&lt;login-config&gt;
    &lt;auth-method&gt;FORM&lt;/auth-method&gt;
    &lt;form-login-config&gt;
      &lt;form-login-page&gt;/login.html&lt;/form-login-page&gt;
      &lt;form-error-page&gt;/loginfail.html&lt;/form-error-page&gt;
    &lt;/form-login-config&gt;
    &lt;realm-name&gt;my realm&lt;/realm-name&gt;
&lt;/login-config&gt;


Tomcat still uses BASIC auth.


Both login files exist.
There are no errors in catalina.err/out.
Leaving out the realm element makes the browser show "Authentication
required" instead of the realm name (still uses BASIC)


Are there any conditions under which FORM based auth is not being used?


Question: Simple UITapGestureRecognizer. IBAction not firing
Answer: It seems from your screenshot that the gesture recognizer is added to the view controller, not the view.  You just need to drag the gesture recognizer onto the view, and it should add it correctly.