org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 i n XML document from ServletContext resource [/WEB-INF/springapp-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4 .a: Invalid content was found starting with element 'beans'. One of '{"http://ww w.springframework.org/schema/beans":description, "http://www.springframework.org /schema/beans":import, "http://www.springframework.org/schema/beans":alias, "htt p://www.springframework.org/schema/beans":bean, WC[##other:"http://www.springfra mework.org/schema/beans"]}' is expected.

Stack Overflow | Alastair | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Why does the context initialization fail for the Spring MVC tutorial section 4.6?

    Stack Overflow | 3 years ago | Alastair
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 i n XML document from ServletContext resource [/WEB-INF/springapp-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4 .a: Invalid content was found starting with element 'beans'. One of '{"http://ww w.springframework.org/schema/beans":description, "http://www.springframework.org /schema/beans":import, "http://www.springframework.org/schema/beans":alias, "htt p://www.springframework.org/schema/beans":bean, WC[##other:"http://www.springfra mework.org/schema/beans"]}' is expected.
  2. 0

    SOAP authentication configured in app-context.xml

    Coderanch | 4 years ago | Zoltaan Szabo
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from class path resource [META-INF/spring/app-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'http'. One of '{"http://www.springframework.org/schema/beans":description, "http://www.springframework.org/schema/beans":import, "http://www.springframework.org/schema/beans":alias, "http://www.springframework.org/schema/beans":bean, WC[##other:"http://www.springframework.org/schema/beans"]}' is expected.
  3. 0

    SOAP authentication configured in app-context.xml (Web Services forum at JavaRanch)

    coderanch.com | 1 year ago
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from class path resource [META-INF/spring/app-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'http'. One of '{"http://www.springframework.org/schema/beans":description, "http://www.springframework.org/schema/beans":import, "http://www.springframework.org/schema/beans":alias, "http://www.springframework.org/schema/beans":bean, WC[##other:"http://www.springframework.org/schema/beans"]}' is expected.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    creating spring list as bean in XML

    Stack Overflow | 3 years ago | The Thom
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 18 in XML document from class path resource [conf/portserver.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 37; cvc-complex-type.2.4.a: Invalid content was found starting with element 'list'. One of '{"http://www.springframework.org/schema/beans":import, "http://www.springframework.org/schema/beans":alias, "http://www.springframework.org/schema/beans":bean, WC[##other:"http://www.springframework.org/schema/beans"], "http://www.springframework.org/schema/beans":beans}' is expected.
  6. 0

    Thoughts of Tim Bish: Ussing SSL in NMS.ActiveMQ

    blogspot.com | 1 year ago
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 166 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 166; columnNumber: 14; cvc-complex-type.2.4.a: Invalid content was found starting with element 'sslContext'. One of '{"http://www.springframework.org/schema/beans":import, "http://www.springframework.org/schema/beans":alias, "http://www.springframework.org/schema/beans":bean, WC[##other:"http://www.springframework.org/schema/beans"], "http://www.springframework.org/schema/beans":beans}' is expected.

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException

      Line 10 i n XML document from ServletContext resource [/WEB-INF/springapp-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4 .a: Invalid content was found starting with element 'beans'. One of '{"http://ww w.springframework.org/schema/beans":description, "http://www.springframework.org /schema/beans":import, "http://www.springframework.org/schema/beans":alias, "htt p://www.springframework.org/schema/beans":bean, WC[##other:"http://www.springfra mework.org/schema/beans"]}' is expected.

      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions()
    2. Spring Beans
      XmlBeanDefinitionReader.doLoadBeanDefinitions
      1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:369)
      1 frame