title: No mapping found for HTTP Spring MVC
body: <p>I'm doing a little demo with spring mvc and I have a problem when deploying the application. I'm using wildfly 10.0.0</p>
  
  <p>In don't understand what is happening</p>
  
  <p>in My web.xml </p>
  
  <pre><code>&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
        http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
  version="3.0"&gt;
  
  &lt;display-name&gt;Archetype Created Web Application&lt;/display-name&gt;
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;simu-cmac&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;/WEB-INF/spring/app-config.xml&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;simu-cmac&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.htm&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p></p>
  
  <p>in my app-config.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
  xmlns:mvc="http://www.springframework.org/schema/mvc"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
      http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd"&gt;
  
  &lt;context:component-scan base-package="com.cmac.simu" /&gt;
  
  &lt;mvc:annotation-driven/&gt;
  </code></pre>
  
  <p></p>
  
  <p>And my Controller </p>
  
  <pre><code>@Controller
  public class SimuAPIController {
  
  protected final Log logger = LogFactory.getLog(getClass());
  
  @RequestMapping("/home.htm")
  public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
  
      logger.info("Returning home view");
      System.out.println("To home view");
      return new ModelAndView("home.jsp");
  }
  
  }
  </code></pre>
  
  <p>When the application is deployed the following error is displayed on the console</p>
  
  <pre><code>19:50:39,417 WARN  [org.springframework.web.servlet.PageNotFound] (default task-3) No mapping found for HTTP request with URI [/simu-cmac/home.htm] in DispatcherServlet with name 'simu-cmac'
  </code></pre>