• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to resolve this exception in Spring  RSS feed

 
Sumit RawalArora
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '..........Service' defined in ServletContext resource [/WEB-INF/mss-service.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean
 
Campbell Ritchie
Marshal
Posts: 56221
171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would need to provide lots more details before we could help.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16047
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That means that something went wrong when Spring was initializing beans. But the part of the error message that you posted does not contain enough information to tell what exactly went wrong.

When something goes wrong when Spring initializes its beans, then you often get very long stack traces with multiple "caused by" messages. Often you can find the ultimate cause of the problem by looking at the last of these messages, at the bottom of the long stack trace. So, start looking there to find out what's wrong.
 
Anton Golovin
Ranch Hand
Posts: 531
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sumit Gautam wrote: nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '..........Service' defined in ServletContext resource [/WEB-INF/mss-service.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean


Hi, Sumit,

Spring's application context is an object factory. When it tries to produce a new object, it fails.

Please check your configuration file, something is mis-configured there in terms of defining one of the Spring beans wired in there by XML markup (or by an annotation if you're using those).

With best regards,

Anton.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!