title: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name
body: <p>When I try run my project I get error </p>
  
  <pre><code>Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name dispatcher
      at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3156)
      at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3135)
      at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1372)
      at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1176)
      at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      ... 6 more
  </code></pre>
  
  <p>My <code>web.xml</code>:</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;DispatcherServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.do&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>