This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring:xception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Spring:xception in thread "main" org.springframework.beans.factory.BeanCreationException" Watch "Spring:xception in thread "main" org.springframework.beans.factory.BeanCreationException" New topic
Author

Spring:xception in thread "main" org.springframework.beans.factory.BeanCreationException

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1160

Getting below exception while running mentioned spring test code : please help



Exception




TestClass.java




Employee.java


BeanEx.xml



Address.java



No Kaustubh No Fun, Know Kaustubh Know Fun..
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1282



That does not match any of the constructors you have defined for you employee object.

You need to either provide no arguments, an Address bean, or a String, int, Address


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Spring:xception in thread "main" org.springframework.beans.factory.BeanCreationException
 
Similar Threads
Spring+Hibernate can't create SessionFactory bean
spring form submission
Problem in spring mvc configuration
Spring AOP HELP needed
Spring 2.5 - Transaction example