title: Cannot run login form with Shiro
body: <p>I have searched many pages and follow, seem I'm not lucky guy, I cannot run my login page (I'm a newbie). When I clicked login button, nothing happen. Here is my web-app structure</p>
  
  <p>login.xhtml (JSF form)</p>
  
  <pre><code>&lt;h:form prependId="false"&gt;
          &lt;h:panelGroup&gt;
              &lt;h:panelGrid id="panel" columns="2" border="1" cellpadding="0" cellspacing="2"&gt;
                  &lt;h:outputLabel for="username" value="Email" /&gt;
                  &lt;h:inputText id="username"  /&gt;
  
                  &lt;h:outputLabel for="password" value="Password" /&gt;
                  &lt;h:inputText id="password" /&gt;
  
              &lt;/h:panelGrid&gt;
              &lt;h:commandButton value="Login" style="margin-top: 10px;"/&gt;
          &lt;/h:panelGroup&gt;
      &lt;/h:form&gt;
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>&lt;filter&gt;
      &lt;filter-name&gt;Pretty Filter&lt;/filter-name&gt;
      &lt;filter-class&gt;com.ocpsoft.pretty.PrettyFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter&gt;
      &lt;filter-name&gt;ShiroFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;org.apache.shiro.web.servlet.ShiroFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;Pretty Filter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;
      &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;
      &lt;dispatcher&gt;ERROR&lt;/dispatcher&gt;
  &lt;/filter-mapping&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;ShiroFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;
      &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;
      &lt;dispatcher&gt;INCLUDE&lt;/dispatcher&gt;
      &lt;dispatcher&gt;ERROR&lt;/dispatcher&gt;
  &lt;/filter-mapping&gt;
  &lt;!-- Setup Apache Shiro for Authentication &amp; Authorization --&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;org.apache.shiro.web.env.EnvironmentLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  </code></pre>
  
  <p>shiro.ini</p>
  
  <pre><code>[main]
  authc = com.beacon.security.MetroFormAuthenticationFilter
  authc.loginUrl = /login.xhtml
  authc.successUrl  = /home
  
  [urls]
  /login.xhtml = authc
  /errors/notAuthorized.xhtml = authc
  /** = anon
  </code></pre>