title: How to fix 404 error, The origin server did not find a current representation for the target resource or is not willing to disclose that one exists
body: <p>When I am trying to execute <code>@RequestMapping("/showForm")</code> I am facing an error.</p>
  
  <p>I think my code seems fine, I am simply returning new String with the name of my JSP file - "mainmenu.jsp". I have this folder the folder JSP in the right place.
  The error: </p>
  
  <blockquote>
    <p>Description The origin server did not find a current representation
    for the target resource or is not willing to disclose that one
    exists.</p>
  </blockquote>
  
  <p>Where can be the problem?</p>
  
  <pre><code>&lt;mvc:annotation-driven /&gt;
  &lt;context:component-scan
      base-package="com.crunchify.controller" /&gt;
  &lt;mvc:default-servlet-handler /&gt;
  
  &lt;bean id="viewResolver"
      class="org.springframework.web.servlet.view.UrlBasedViewResolver"&gt;
      &lt;property name="viewClass"
          value="org.springframework.web.servlet.view.JstlView" /&gt;
      &lt;property name="prefix" value="/WEB-INF/jsp/" /&gt;
      &lt;property name="suffix" value=".jsp" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>  &lt;servlet&gt;
      &lt;servlet-name&gt;crunchify&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;crunchify&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/welcome.jsp&lt;/url-pattern&gt;
      &lt;url-pattern&gt;/mainmenu.jsp&lt;/url-pattern&gt;
      &lt;url-pattern&gt;/mainmenu.html&lt;/url-pattern&gt;
      &lt;url-pattern&gt;/processForm.jsp&lt;/url-pattern&gt;
      &lt;url-pattern&gt;/processForm.html&lt;/url-pattern&gt;
      &lt;url-pattern&gt;/index.jsp&lt;/url-pattern&gt;
      &lt;url-pattern&gt;/main-menu.jsp&lt;/url-pattern&gt;
      &lt;url-pattern&gt;/welcome.html&lt;/url-pattern&gt;
      &lt;url-pattern&gt;*.html&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p></p>
  
  <p>The actual request: </p>
  
  <pre><code>@RequestMapping("/showForm")
  public String helloWorld() {        
      return "mainmenu";
  }
  </code></pre>