title: Spring MVC with EXT JS error: DispatcherServlet noHandlerFound
body: <p>I am trying to get a simple EXT JS form to appear on my tomcat but i am getting the following error:</p>
  
  <pre><code>17-Apr-2012 10:46:09 org.springframework.web.servlet.DispatcherServlet noHandlerFound
  WARNING: No mapping found for HTTP request with URI [/helloworld/service/web/js  /restful.css] in DispatcherServlet with name 'rest'
  17-Apr-2012 10:46:09 org.springframework.web.servlet.DispatcherServlet noHandlerFound
  WARNING: No mapping found for HTTP request with URI [/helloworld/service/web/js/restful.js] in DispatcherServlet with name 'rest'
  </code></pre>
  
  <p>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;Archetype Created Web Application&lt;/display-name&gt;
  
  &lt;context-param&gt;
  &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
  &lt;param-value&gt;
  classpath:/application-context.xml
  &lt;/param-value&gt;
  &lt;/context-param&gt;
  
  
  &lt;!-- This listener will load other application context file in addition to 
          rest-servlet.xml --&gt;
  &lt;listener&gt;
  &lt;listener-class&gt;
  org.springframework.web.context.ContextLoaderListener
  &lt;/listener-class&gt;
  &lt;/listener&gt;
  
  &lt;servlet&gt;
  &lt;servlet-name&gt;rest&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;rest&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/service/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>rest-servlet.xml</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:mvc="http://www.springframework.org/schema/mvc" 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
      http://www.springframework.org/schema/mvc
      http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"&gt;
  
  &lt;context:component-scan base-package="com.fexco.helloworld.web" /&gt;
  
  &lt;mvc:annotation-driven /&gt;
  
     &lt;bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"&gt;
            &lt;property name="messageConverters"&gt;
                   &lt;list&gt;
                         &lt;ref bean="jsonConverter" /&gt;
                   &lt;/list&gt;
            &lt;/property&gt;
     &lt;/bean&gt;
  
     &lt;bean id="jsonConverter" class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter"&gt;
            &lt;property name="supportedMediaTypes" value="application/json" /&gt;
     &lt;/bean&gt;
  
     &lt;bean
      class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;property name="prefix"&gt;
          &lt;value&gt;/&lt;/value&gt;
      &lt;/property&gt;
      &lt;property name="suffix"&gt;
          &lt;value&gt;.jsp&lt;/value&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p></p>
  
  <p>I am calling the restful.css and restful.js classes from the index.jsp</p>
  
  <pre><code>&lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%&gt;
  
  &lt;%@ page contentType="text/html; charset=ISO-8859-1"%&gt;
  
  &lt;html&gt;
  
  &lt;head&gt;
  &lt;link rel="stylesheet" type="text/css" href="/webapp/js/restful.css" /&gt;
  &lt;script type="text/javascript" src="/webapp/js/restful.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;h1&gt;This is used to display EXT objects&lt;/h1&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>directory structure</p>
  
  <p><img src="https://i.stack.imgur.com/gSjt4.png" alt="this is the structure of my directory"></p>
  
  <p>I cant seem to solve this error, my index.jsp is appearing on the page alright but no EXT form is appearing, I have looked at similar problems online and all there solutions are in mine at the moment so this not the same errors.</p>
  
  <p>Does anybody have any ideas?</p>