wood burning stoves 2.0*
The moose likes Spring and the fly likes No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but 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 "No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but" Watch "No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but" New topic
Author

No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but

Chris Djengoue
Greenhorn

Joined: Jun 28, 2011
Posts: 1
Can someone tell me what's wrong with my config? I'm overly frustrated and I've been loosing my hair on this. Any pointer will be welcome.
Thanks

Persistence.xml



Web.xml



applicationContext.xml



mvc-dispatcher-servlet.xml


UserAccountDAO.java


loginController.java


Error Stack

 
 
subject: No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but
 
Similar Threads
Liferay Portlet development with Spring: No handler found for request error
<mvc:default-servlet-handler/> is invalid
org.springframework.beans.factory.BeanCreationException
Spring 3
configuring jndi lookup