• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

How to resolve this exception in Spring  RSS feed

 
Ranch Hand
Posts: 32
  • 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: 59762
188
  • 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: 16084
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!