aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Bean Initialization fails... Why?" Watch "Bean Initialization fails... Why?" New topic
Author

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
Hi,

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,
Suhas
http://www.xplore-java.blogspot.com/
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
Author
Rancher

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: 467
can you please post the full stack trace


Visit my blog: http://jnassef.blogspot.com/
Phoenix Kilimba
Ranch Hand

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



Thanks again
 
wood burning stoves
 
subject: Bean Initialization fails... Why?