title: Filter not working
body: <p>I basically have a filter and in it's doFilter method, i'm just printing a message to console and i have applied that filter to every page of my sample web app.</p>
  
  <p>web.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
  
  
  &lt;filter&gt;
      &lt;filter-name&gt;LoginFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;
          com.mypkg.filters.LoginFilter
      &lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;LoginFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  
  &lt;welcome-file-list&gt;
  &lt;welcome-file&gt;utility.jsp&lt;/welcome-file&gt;
  </code></pre>
  
  <p>
     </p>
  
  <p>and my filter code
  LoginFilter.java</p>
  
  <pre><code>package com.mypkg.filters;
  
  import java.io.IOException;
  import javax.servlet.*;
  import javax.servlet.http.HttpServletResponse;
  //other imports
  
  public class LoginFilter implements Filter {
  
  @Override
  public void init(FilterConfig config) throws ServletException {
       System.out.println("Filter init ran!");
  }
  
  @Override
  public void doFilter(ServletRequest request, ServletResponse response,FilterChain chain) throws IOException, ServletException {
      System.out.println("Filter running!");
  }
  
  @Override
  public void destroy(FilterConfig config) throws ServletException {
       //System.out.println("Filter destoryed!");
  }
  </code></pre>
  
  <p>Now when i first ran this filter, i got "Filter running" message but after that i included hibernate and other libraries, it stopped working, i removed them and same result. Filter doesn't run. Checked url pattern and everything.. Clueless!!</p>
  
  <p>Any pointers?</p>