title: White spaces are required between publicId and systemId in my spring-servlet.xml
body: <p>I'm a beginner in the spring framework. </p>
  
  <p>When I execute the application, I have the following error : </p>
  
  <blockquote>
    <p>org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
    Line 1 in XML document from ServletContext resource
    [/WEB-INF/spring-servlet.xml] is invalid; nested exception is
    org.xml.sax.SAXParseException; systemId:
    <a href="http://www.springframework.org/schema/mvc/spring-mvc-2.5.xsd" rel="nofollow">http://www.springframework.org/schema/mvc/spring-mvc-2.5.xsd</a>;
    lineNumber: 1; columnNumber: 50; White spaces are required between
    publicId and systemId</p>
  </blockquote>
  
  <p><strong>web.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;web-app
      version="2.5"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&gt;
  
      &lt;servlet&gt;
         &lt;servlet-name&gt;spring&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;spring&lt;/servlet-name&gt;
         &lt;url-pattern&gt;*.jsp&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>spring-servlet.xml:</strong></p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:mvc="http://www.springframework.org/schema/mvc"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
      http://www.springframework.org/schema/mvc
      http://www.springframework.org/schema/mvc/spring-mvc-2.5.xsd
      http://www.springframework.org/schema/context
      http://www.springframework.org/schema/context/spring-context-2.5.xsd"&gt;
  
      &lt;context:component-scan base-package="com.application.myGoogleAppEngine.controller" /&gt;
  
      &lt;mvc:annotation-driven /&gt;
  
      &lt;bean id="localeResolver" class="org.springframework.web.servlet.i18n.SessionLocaleResolver"&gt;
            &lt;property name="defaultLocale" value="fr" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"&gt;
            &lt;property name="paramName" value="language" /&gt;
      &lt;/bean&gt;
  
      &lt;!-- Register the welcome.properties --&gt;
      &lt;bean class="org.springframework.context.support.ReloadableResourceBundleMessageSource" id="messageSource"&gt; 
          &lt;property value="classpath:MessageBundle" name="basename"/&gt; 
          &lt;property value="UTF-8" name="defaultEncoding"/&gt; 
      &lt;/bean&gt;
  
      &lt;bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver" &gt;
          &lt;property value="org.springframework.web.servlet.view.JstlView" name="viewClass"/&gt;
          &lt;property name="prefix"&gt;
             &lt;value&gt;/WEB-INF/pages/&lt;/value&gt;
          &lt;/property&gt;
          &lt;property name="suffix"&gt;
             &lt;value&gt;.jsp&lt;/value&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>