1. Explore
  2. »
  3. Spring Beans
  4. »
  5. org.springframework.beans.factory.xml
  6. »
  7. XmlBeanDefinitionReader
  8. »
  9. loadBeanDefinitions
  10. »
  11. BeanDefinitionStoreException

org.springframework.beans.factoryBeanDefinitionStoreException errorsSpring Beans

Top patterns

  1. Unable to load spring beans

    The two relevant solutions to this problem are:

    • If you are using bean definitions xml file you did not provide the relative path to the bean definitions xml file while creating ApplicationContext.
    • If you are using annotations, in that case there is no bean definitions file altogether, it is more likely that your package scope in component scanning annotations like @ComponentScan is pointing to the wrong package.
  2. Incompatible library/jar versions detected while parsing bean definitions file.

    Make sure that the library/jar file (where the exception throwing class is located) has a version number that is compatible with other libraries in the dependencies tree.

  3. XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException
    No solution
DescriptionException TypeEntry MethodWeb pages

Unable to load spring beans

java.io.FileNotFoundException
2 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
157Web pages
1Solution
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()157

Incompatible library/jar versions detected while parsing bean definitions file.

org.springframework.beans.factory.BeanDefinitionStoreException
1 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
115Web pages
1Solution
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()115

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

java.io.FileNotFoundException
3 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
104Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()104

Incorrect resource mapping resulting in FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
101Web pages
1Solution
FileNotFoundExceptionXmlBeanDefinitionReader.loadBeanDefinitions()101

ServletContext unable to load Spring Beans

java.io.FileNotFoundException
2 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
93Web pages
1Solution
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()93

ServletContext unable to find bean definitions/configuration file

org.springframework.beans.factory.BeanDefinitionStoreException
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
86Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()86

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
1 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
72Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()72

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionParsingException

org.springframework.beans.factory.parsing.BeanDefinitionParsingException
12 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
59Web pages
BeanDefinitionParsingExceptionXmlBeanDefinitionReader.loadBeanDefinitions()59

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionParsingException

org.springframework.beans.factory.parsing.BeanDefinitionParsingException
11 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
43Web pages
BeanDefinitionParsingExceptionXmlBeanDefinitionReader.loadBeanDefinitions()43

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

java.lang.IllegalStateException
10 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
14Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()14

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
1 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
14Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()14

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
22 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
12Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()12

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a FileNotFoundException

java.io.FileNotFoundException
3 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
12Web pages
FileNotFoundExceptionXmlBeanDefinitionReader.loadBeanDefinitions()12

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
21 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
12Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()12

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
10Web pages
FileNotFoundExceptionXmlBeanDefinitionReader.loadBeanDefinitions()10

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

java.io.FileNotFoundException
4 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
10Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()10

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
22 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
10Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()10

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
20 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
10Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()10

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
21 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
9Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()9

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
9Web pages
FileNotFoundExceptionXmlBeanDefinitionReader.loadBeanDefinitions()9

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
2 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
9Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()9

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionParsingException

org.springframework.beans.factory.parsing.BeanDefinitionParsingException
11 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
9Web pages
BeanDefinitionParsingExceptionXmlBeanDefinitionReader.loadBeanDefinitions()9

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a SAXParseException

org.xml.sax.SAXParseException
1 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
8Web pages
SAXParseExceptionXmlBeanDefinitionReader.loadBeanDefinitions()8

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

java.io.FileNotFoundException
5 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
8Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()8

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a SAXParseException

org.xml.sax.SAXParseException
23 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
7Web pages
SAXParseExceptionXmlBeanDefinitionReader.loadBeanDefinitions()7

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
2 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
7Web pages
NoClassDefFoundErrorXmlBeanDefinitionReader.loadBeanDefinitions()7

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
1 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
7Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()7

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

java.io.FileNotFoundException
3 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
6Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()6

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
22 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
6Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()6

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
21 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
6Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()6

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a SAXParseException

org.xml.sax.SAXParseException
25 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
5Web pages
SAXParseExceptionXmlBeanDefinitionReader.loadBeanDefinitions()5

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a SAXParseException

org.xml.sax.SAXParseException
25 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
5Web pages
SAXParseExceptionXmlBeanDefinitionReader.loadBeanDefinitions()5

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
11 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
5Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()5

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
18 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
5Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()5

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
21 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
4Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()4

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

java.io.FileNotFoundException
7 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
4Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()4

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
4Web pages
FileNotFoundExceptionXmlBeanDefinitionReader.loadBeanDefinitions()4

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
10 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
4Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()4

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
21 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
4Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()4

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a FatalBeanException

org.springframework.beans.FatalBeanException
2 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
4Web pages
FatalBeanExceptionXmlBeanDefinitionReader.loadBeanDefinitions()4

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
13 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
4Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()4

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a SAXParseException

org.xml.sax.SAXParseException
21 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
4Web pages
SAXParseExceptionXmlBeanDefinitionReader.loadBeanDefinitions()4

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
22 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
4Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()4

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
19 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
3Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()3

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

java.io.FileNotFoundException
5 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
3Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()3

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a ClassCastException

java.lang.ClassCastException
4 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
3Web pages
ClassCastExceptionXmlBeanDefinitionReader.loadBeanDefinitions()3

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.xml.sax.SAXParseException
19 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
3Web pages
XmlBeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()3

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

java.lang.IllegalStateException
17 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
2Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()2

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

java.io.FileNotFoundException
8 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
2Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()2

XmlBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
12 frames hidden
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
2Web pages
BeanDefinitionStoreExceptionXmlBeanDefinitionReader.loadBeanDefinitions()2