title: cvc-elt.1: Cannot find the declaration of element 'beans' error
body: <p>I code a spring Batch example , it was working fine before but after I changed the laptop , installed Eclipse  opened the project , when I run it's give an error at the xml configuration file :Cannot find the declaration of element 'beans'. I don't know what is the error after spending lot of time on google , any help is appreciated , if you need more details I can provide , I gave the relevant code to be short question.</p>
  
  <p>incomeRspnsVerifierJob.xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:batch="http://www.springframework.org/schema/batch"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:context="http://www.springframework.org/schema/context"
         xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  
         xmlns:tx="http://www.springframework.org/schema/tx"
         xsi:schemaLocation="http://www.springframework.org/schema/tx
                         http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
                         http://www.springframework.org/schema/context
                        http://www.springframework.org/schema/context/spring-context-3.2.xsd"&gt; 
  
      &lt;bean class="org.springframework.batch.test.JobLauncherTestUtils"/&gt;
  
          &lt;bean id="readIdntfr" class="ca.gc.cfp.de.tasklets.ReadIdntfr"&gt;
  
      &lt;/bean&gt;
  
      &lt;!-- &lt;batch:job id="jobIncmRspns"&gt;
        &lt;batch:step id="step1" &gt;
            &lt;batch:tasklet &gt;
               &lt;ref bean="readIdntfr"&gt;&lt;/ref&gt;
            &lt;/batch:tasklet&gt;
        &lt;/batch:step&gt;
      &lt;/batch:job&gt; --&gt;
      &lt;bean id="rcrdIdntfDecider"    class="ca.gc.cfp.de.deciders.RecordIdentiferDecider"&gt;&lt;/bean&gt;
      &lt;bean id="rcrdIdntfrFailed"    class="ca.gc.cfp.de.tasklets.RcrdIdntfrFailed"&gt;&lt;/bean&gt;
      &lt;bean id="rcrdIdntfrCompleted" class="ca.gc.cfp.de.tasklets.RcrdIdntfrCompleted"&gt;&lt;/bean&gt;
  
      &lt;batch:job id="jobIncmRspns"&gt;
  
       &lt;batch:decision decider="rcrdIdntfDecider" id="rcrdIdntfrDecision"&gt;
          &lt;batch:next on="FAILED" to="rcrdIdntfrFailedStep"/&gt;
          &lt;batch:next on="COMPLETED" to="rcrdIdntfrCompletedStep"/&gt;
        &lt;/batch:decision&gt;
  
        &lt;batch:step id="rcrdIdntfrFailedStep"&gt;   
          &lt;batch:tasklet&gt;
            &lt;ref bean="rcrdIdntfrFailed"&gt;&lt;/ref&gt;
          &lt;/batch:tasklet&gt;
        &lt;/batch:step&gt;
  
        &lt;batch:step id="rcrdIdntfrCompletedStep"&gt;  
          &lt;batch:tasklet&gt;
            &lt;ref bean="rcrdIdntfrCompleted"/&gt;
          &lt;/batch:tasklet&gt;
        &lt;/batch:step&gt;
      &lt;/batch:job&gt;
  
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>the console log in eclipse  :</p>
  
  <pre><code>Apr 29, 2019 3:13:11 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
  INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@7ba18f1b: startup date [Mon Apr 29 15:13:11 EDT 2019]; root of context hierarchy
  Apr 29, 2019 3:13:11 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  INFO: Loading XML bean definitions from class path resource [spring/batch/jobs/incomeRspnsVerifierJob.xml]
  Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 12 in XML document from class path resource [spring/batch/jobs/incomeRspnsVerifierJob.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 94; cvc-elt.1: Cannot find the declaration of element 'beans'.
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:252)
      at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127)
      at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93)
      at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
      at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:614)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:515)
      at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139)
      at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:83)
      at ca.gc.cfp.de.main.IncmRspnsMain.main(IncmRspnsMain.java:21)
  Caused by: org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 94; cvc-elt.1: Cannot find the declaration of element 'beans'.
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1901)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:741)
      at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
      at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:613)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3132)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:852)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
      at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
      at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
      ... 14 more
  </code></pre>