Meaningless Drivel is fun!*
The moose likes Other Application Frameworks and the fly likes Error: Error creating bean with name 'dataSource' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Error: Error creating bean with name Watch "Error: Error creating bean with name New topic

Error: Error creating bean with name 'dataSource'

Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
Hoping someone here can help me out. I havent used Spring with Hibernate in awhile and I decided to copy and paste some code. I'm having the following error:

javax.servlet.ServletException: Error creating bean with name 'localFactory' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)

This is my applicationContext.xml:
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

This is a Spring configuration issue, not a Hibernate question. I'll move it to a more appropriate forum.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Don't get me started about those stupid light bulbs.
subject: Error: Error creating bean with name 'dataSource'
Similar Threads
Can Any one please help me in Spring MVC with Hibernate am getting this exception
Jboss NameNotFoundException
Weblogic JNDI
Jboss NameNotFoundException
Invocation of init method failed; exception is org.hibernate.InvalidMappingException