This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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

 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but
 
It's not a secret anymore!