This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean Initialization fails... Why?

 
Phoenix Kilimba
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Suhas Bilaye
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Phoenix Kilimba
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using autowire by name?
 
Phoenix Kilimba
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you please post the full stack trace
 
Phoenix Kilimba
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The full stack trace is like so:



Thanks again
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic