This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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