title: org.springframework.web.servlet.DispatcherServlet noHandlerFound (No mapping found)
body: <p>my jsps are under WEB-INF/jsp/ , and following is my web.xml:</p>
  
  <pre><code>&lt;!DOCTYPE web-app PUBLIC
   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
   "http://java.sun.com/dtd/web-app_2_3.dtd" &gt;
  
  &lt;web-app&gt;
    &lt;display-name&gt;Checkout&lt;/display-name&gt;
  
    &lt;servlet&gt;
      &lt;servlet-name&gt;myservlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
  
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;myservlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.action&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>and here's mapping of page product.jsp which i am trying to access:</p>
  
  <pre><code>@Controller
  @RequestMapping("/product.action")
  public class ProductController {
  
      /**
       * Show the product selection form
       * 
       * @return
       */
      @RequestMapping(method=RequestMethod.GET)
      public String get() {
          return "products.jsp";
      }
  
  }
  </code></pre>
  
  <p>when trying to access the page from the following link:</p>
  
  <pre><code>http://localhost:8080/myapp/product.action
  </code></pre>
  
  <p>i am getting <code>404</code> in the browser, and i get the following warning in the console:</p>
  
  <pre><code>Jun 28, 2012 10:55:23 AM org.springframework.web.servlet.DispatcherServlet noHandlerFound
  WARNING: No mapping found for HTTP request with URI [/myapp/product.action] in DispatcherServlet with name 'myservlet'
  </code></pre>
  
  <p>am i missing something in the configuration ?
  please advise, thanks.</p>
  
  <p><strong>EDIT</strong>: i tried adding the viewResolver bean to applicationContext with no luck:</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"
      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-3.1.xsd"&gt;
  
      &lt;context:component-scan base-package="com.myapp"/&gt;
  
  
  
      &lt;bean id="viewResolver"
        class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;property name="prefix" value="/WEB-INF/jsp/"/&gt;
      &lt;property name="suffix" value=".jsp"/&gt;
     &lt;/bean&gt;
  
  
  &lt;/beans&gt;
  </code></pre>