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.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Alastair
, 9 months ago
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 blogspot.com by Unknown author, 1 year ago
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
via Stack Overflow by aiguy
, 2 years ago
Line 10 in XML document from ServletContext resource [/WEB-INF/service-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 113; <Line 10, Column 113>: XML-24500: (Error) Can not build schema 'http://www.springframework.org/schema/beans' located at 'http://www.springframework.org/schema/beans/spring-beans-3.2.xsd'
via Spring JIRA by Iwein Fuld, 1 year ago
Line 33 in XML document from class path resource [cafeDemo.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'concurrency'. One of '{"http://www.springframework.org/schema/integration":selector, "http://www.springframework.org/schema/integration":handler}' is expected.
via Spring JIRA by Iwein Fuld, 1 year ago
Line 33 in XML document from class path resource [cafeDemo.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'concurrency'. One of '{"http://www.springframework.org/schema/integration":selector, "http://www.springframework.org/schema/integration":handler}' is expected.
via Google Groups by kellizer, 3 months ago
Line 38 in XML document from profile/shared/environment-config.xml is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'security-filter'. One of '{"http
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.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
38 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
11 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.