title: Spring mvc schema giving errors
body: <p>I have a <strong>spring-mvc project</strong></p>
  
  <p>It consists of following files</p>
  
  <p><strong>1)applicationContext.xml</strong></p>
  
  <p><strong>2)web-dispatcher-servlet.xml</strong></p>
  
  <p>Both the files consists of <strong>xsi:schemaLocation</strong></p>
  
  <p>Sometimes in the project it will give error on the <strong>xsi:schemaLocation</strong></p>
  
  <p>but after <strong>updating 3-4 times</strong> the error will be gone.</p>
  
  <p>My applicationContext.xml</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"
         xmlns:p="http://www.springframework.org/schema/p"
         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;!-- Activates various annotations to be detected in bean classes --&gt;
      &lt;context:annotation-config/&gt;
  
      &lt;import resource="mongodb-config.xml" /&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>My webmvc-dispatcher-servlet.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:mvc="http://www.springframework.org/schema/mvc"
      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.xsd
      http://www.springframework.org/schema/mvc
      http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd"&gt;
  
  
      &lt;context:component-scan base-package="com.practice" /&gt;
  
      &lt;mvc:annotation-driven /&gt;
  
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>Is this the right solution that I need to update the project to remove the errors?</p>
  
  <p>I am using eclipse-oxygen and doing maven update</p>