aspose file tools*
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 Spring in Action this week in the Spring 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

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but