title: Spring MVC Breadcrumbs
body: <p>I'm using Spring MVC + tiles.</p>
  
  <p>Now I want to build the breadcrumbs. So, I'm using this:
  <a href="https://github.com/pawanspace/BreadCrumb-Spring-MVC" rel="nofollow">https://github.com/pawanspace/BreadCrumb-Spring-MVC</a></p>
  
  <p>It works well but I get an error in the BreadCrumbInterceptor.</p>
  
  <p>This is my servlet-context.xml:</p>
  
  <pre><code>&lt;mvc:interceptors&gt;
      &lt;mvc:interceptor&gt;
          &lt;mvc:mapping path="/**" /&gt;
          &lt;bean
              class="dummiesmind.breadcrumb.springmvc.interceptor.BreadCrumbInterceptor" /&gt;
      &lt;/mvc:interceptor&gt;
  &lt;/mvc:interceptors&gt;
  </code></pre>
  
  <p>And the error:</p>
  
  <pre><code>org.springframework.web.servlet.resource.ResourceHttpRequestHandler cannot be cast to org.springframework.web.method.HandlerMethod
  </code></pre>
  
  <p>Just in this line on method BreadCrumbInterceptor.getDeclaredAnnotationsForHandler:</p>
  
  <pre><code>HandlerMethod handlerMethod = (HandlerMethod)handler;
  </code></pre>
  
  <p>Any idea?</p>
  
  <p>Thank you</p>