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.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web587

  • 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
  • via soso.io by Unknown author, 1 year ago
    Line 11 in XML document from ServletContext resource [/WEB-INF/applicationContext.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
  • Line 11 in XML document from ServletContext resource [/WEB-INF/applicationContext.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
  • Stack trace

    • 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(XmlBeanDefinitionReader.java:369)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    38 times, 9 months ago
    Unknown user
    Once, 1 year ago
    11 times, 1 year ago
    11 more bugmates