• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to resolve this exception in Spring  RSS feed

 
Greenhorn
Posts: 28
  • 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
 
Marshal
Posts: 57276
175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would need to provide lots more details before we could help.
 
Java Cowboy
Sheriff
Posts: 16079
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.
 
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.
 
I do some of my very best work in water. Like this tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!