Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sreekanth aleddulla
Greenhorn
Posts: 27
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi am getting the below error



can any body please help me how to fix this.
 
Rishi Shehrawat
Ranch Hand
Posts: 218
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are injecting entity manager using Spring, however entity manager is not defined in your Spring configuration file.
 
sreekanth aleddulla
Greenhorn
Posts: 27
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic