Results 1 to 2 of 2

Thread: Cannot find the declaration of element 'beans'.

  1. #1
    Join Date
    Sep 2012
    Posts
    2

    Default Cannot find the declaration of element 'beans'.

    I was wondering if someone could help me solve this error i am getting. The error is:
    Code:
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:....XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:378)
    Here is what my applicationContext hearder looks like

    Code:
     xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:aop="http://www.springframework.org/schema/aop"
           xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">

  2. #2
    Join Date
    Dec 2012
    Posts
    3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •