title: Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: no declaration can be found for element 'jpa:repositories'
body: <p>I saw this same query and multiple answers in Stack Overflow, but nothing worked for me. As none of the solutions worked in my case, wondering if there is something else left to try!</p>
  
  <p>Exception :</p>
  
  <pre><code>Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 49 in XML document from URL [file:/C:/xxx/xxx-data/target/classes/xxx-data-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 49; columnNumber: 172; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jpa:repositories'.
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
  </code></pre>
  
  <p>This is how my XML starts:</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"
         xmlns:aop="http://www.springframework.org/schema/aop"
         xmlns:util="http://www.springframework.org/schema/util"
         xmlns:jpa="http://www.springframework.org/schema/data/jpa"
         xmlns:jee="http://www.springframework.org/schema/jee"
         xsi:schemaLocation="http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
        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/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsd
          http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"&gt;
  </code></pre>
  
  <p>This is the line where the exception points to :</p>
  
  <pre><code>&lt;jpa:repositories base-package="au.com.xxxxxxx.xxx.data.dao.bth" entity-manager-factory-ref="entityManagerFactory-slg" transaction-manager-ref="transactionManager-slg"/&gt;
  </code></pre>
  
  <p>I tried with and without version for JPA, with and without HTTPS, validated the XML and what not, but nothing worked.</p>
  
  <p>Note: I tried commenting the jpa:repositories tag and then got into the next issue:</p>
  
  <pre><code>Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.3: Element 'beans' 
  
      cannot have character [children], because the type's content type is element-only.
          at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
  </code></pre>