File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes No unique bean of type  [javax.persistence.EntityManagerFactory] is defined: but found 0 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: but found 0" Watch "No unique bean of type  [javax.persistence.EntityManagerFactory] is defined: but found 0" New topic
Author

No unique bean of type [javax.persistence.EntityManagerFactory] is defined: but found 0

sreekanth aleddulla
Greenhorn

Joined: Feb 08, 2011
Posts: 27

Hi am getting the below error



can any body please help me how to fix this.
Rishi Shehrawat
Ranch Hand

Joined: Aug 11, 2010
Posts: 218

You are injecting entity manager using Spring, however entity manager is not defined in your Spring configuration file.
sreekanth aleddulla
Greenhorn

Joined: Feb 08, 2011
Posts: 27

no i have configured EntityManagerFactory in applicationContext.xml

please find the below applicationContext.xml



i am getting the below stack strace error
please help me

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No unique bean of type [javax.persistence.EntityManagerFactory] is defined: but found 0