This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Bean Initialization fails... Why? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Bean Initialization fails... Why?" Watch "Bean Initialization fails... Why?" New topic

Bean Initialization fails... Why?

Phoenix Kilimba
Ranch Hand

Joined: Oct 10, 2006
Posts: 64
Dear Sirs et Madames,
am new to Spring unfortunately and have just added a bean locationVO to my application context. However, When deployed and I start up Tomcat 6, I get an exception:

My applicationContext.xml looks like so (relevant beans only):

LocationVO looks thus:

Please help... What does the error message mean? google did not seem to be helpful ...
Thanks in advance

You are what you know
Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80

In "locationVO" you have properties as follows:

while in the config - file you have configured locationVO bean as follows:

I don't see any property with the name of locationCrudImpl which you are referring to.

Thanks and Regards,
Phoenix Kilimba
Ranch Hand

Joined: Oct 10, 2006
Posts: 64
Sorry the clas LocationVO DOES have that property, I was just a little careless when copy and pasting... its like so:

David Newton

Joined: Sep 29, 2008
Posts: 12617

Are you using autowire by name?
Phoenix Kilimba
Ranch Hand

Joined: Oct 10, 2006
Posts: 64
Hi David,
Well am a bit new to Spring, and it is not my code, its code I have inherited, where would I check if the code IS using autowire by name? and What are the implications if it is?
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 460
can you please post the full stack trace

Visit my blog:
Phoenix Kilimba
Ranch Hand

Joined: Oct 10, 2006
Posts: 64
The full stack trace is like so:

Thanks again
It is sorta covered in the JavaRanch Style Guide.
subject: Bean Initialization fails... Why?
Similar Threads
Autoproxying @AspectJ aspects
[spring] aop config
problens in spring CustomDataEditor!
Spring DI help