title: Spring Tomcat : Non-whitespace characters are not allowed in schema elements . Saw '301 Moved Permanently'
body: <p>I am trying to bring up a tomcat server, and am facing problems with loading definitions of spring beans. The <code>applicationContext.xml</code> reads as follows :</p>
  
  <pre><code>&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:tx="http://www.springframework.org/schema/tx"
     xmlns:aop="http://www.springframework.org/schema/aop" xmlns:task="http://www.springframework.org/schema/task" xmlns:hz="http://www.hazelcast.com/schema/spring"
     xmlns:mongo="http://www.springframework.org/schema/data/mongo"
     xmlns:solr="http://www.springframework.org/schema/data/solr" xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch"
     xsi:schemaLocation="http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
      http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
      http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
      http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.0.xsd
      http://www.springframework.org/schema/data/mongo http://www.springframework.org/schema/data/mongo/spring-mongo-1.5.xsd
      http://www.hazelcast.com/schema/spring META-INF/hazelcast-spring-2.0.xsd
  
      http://www.springframework.org/schema/data/solr http://www.springframework.org/schema/data/solr/spring-solr.xsd
  
  
      http://www.springframework.org/schema/data/elasticsearch http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch.xsd"&gt;
      ..
      ..
      ..
      ..
  </code></pre>
  
  <p>The IDE (Idea) says it is unable to resolve the file <code>hazelcast-spring-2.0.xsd</code></p>
  
  <p>The error log says: </p>
  
  <pre><code>13:19:59,909 INFO  [localhost-startStop-1][XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [applicationContext.xml]
  13:20:02,964 ERROR [localhost-startStop-1][ContextLoader] - Context initialization failed
  org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 2 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://hazelcast.com/schema/spring/hazelcast-spring-2.0.xsd; lineNumber: 2; columnNumber: 35; s4s-elt-character: 
  **Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 Moved Permanently'.**
  </code></pre>
  
  <p>What am I doing wrong here ? I did not touch this file.</p>