title: Getting "WARN org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI ..." when trying to setup spring servlet
body: <p>I am trying to setup a Spring MVC project. I have added a dispatcher servlet, a jsp and setup the web.xml file. But I keep getting </p>
  
  <blockquote>
    <p>WARN  org.springframework.web.servlet.PageNotFound  - No mapping found for HTTP request with URI [/safesite/WEB-INF/jsp/hello.jsp] in DispatcherServlet with name 'HelloWeb'</p>
  </blockquote>
  
  <p>Here's my web.xml</p>
  
  <pre><code>...
  &lt;context-param&gt;
      &lt;description&gt;Vaadin production mode&lt;/description&gt;
      &lt;param-name&gt;productionMode&lt;/param-name&gt;
      &lt;param-value&gt;true&lt;/param-value&gt;
  &lt;/context-param&gt;
  
  &lt;!-- To load the Spring context --&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;org.activiti.explorer.servlet.WebConfigurer&lt;/listener-class&gt;
  &lt;/listener&gt;
  
  &lt;!-- To allow session-scoped beans in Spring --&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.request.RequestContextListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  
  &lt;filter&gt;
      &lt;filter-name&gt;UIFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;org.activiti.explorer.filter.ExplorerFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  
  &lt;filter&gt;
      &lt;filter-name&gt;JSONPFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;org.activiti.explorer.servlet.JsonpCallbackFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;UIFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/o/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;JSONPFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/service/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;Vaadin Application Servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.activiti.explorer.servlet.ExplorerApplicationServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;widgetset&lt;/param-name&gt;
          &lt;param-value&gt;org.activiti.explorer.CustomWidgetset&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Vaadin Application Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/ui/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Vaadin Application Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/VAADIN/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;HelloWeb&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;HelloWeb&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.jsp&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;!-- Session timeout on one day --&gt;
  &lt;session-config&gt;
      &lt;session-timeout&gt;480&lt;/session-timeout&gt;
  &lt;/session-config&gt;
  </code></pre>
  
  <p></p>
  
  <p>And here is my HelloWeb-servlet.xml</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:context="http://www.springframework.org/schema/context"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="
     http://www.springframework.org/schema/beans     
     http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
     http://www.springframework.org/schema/context 
     http://www.springframework.org/schema/context/spring-context-3.0.xsd"&gt;
  
  &lt;context:component-scan base-package="org.activiti.explorer.controller" /&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>
  
  <p>My HelloController</p>
  
  <pre><code> package org.activiti.explorer.controller;
  
   import org.springframework.stereotype.Controller;
   import org.springframework.web.bind.annotation.RequestMapping;
   import org.springframework.web.servlet.ModelAndView;
  
   /**
    *
    * @author Fionn
    */
   @Controller
   public class HelloController {
  
  @RequestMapping("/hello")
  public ModelAndView helloWorld() {
  
           String message = "&lt;br&gt;&lt;div align='center'&gt;"
                   + "&lt;h3&gt;********** Hello World, Spring MVC Tutorial&lt;/h3&gt;This message is comming from CrunchifyHelloWorld.java **********&lt;br&gt;&lt;br&gt;";
           return new ModelAndView("hello", "message", message);
       }
  }
  </code></pre>
  
  <p>And my hello.jsp</p>
  
  <pre><code>&lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt;
  &lt;%@taglib uri="http://www.springframework.org/tags" prefix="spring"%&gt;
  &lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt;
  &lt;%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"     %&gt;
  &lt;%@page trimDirectiveWhitespaces="true" %&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Hello Spring MVC&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>I can't figure this one out so any help would be greatly appreciated.</p>