aspose 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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
 
Similar Threads
Problem in using multiple persistence units
Problem using EclipseLink -> org.springframework.dao.InvalidDataAccessApiUsageException
Spring + JPA + Hibernate and multiple Database connection
No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but
Error Message: Filter [applicationContextMapFilter]: could not be initialized