• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

junitErrorError creating bean with name 'entityManagerFactory' defined in URL

 
Ranch Hand
Posts: 100
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Team,

Im trying to run a jUnit test case and I get the below Spring error message. Error loading the application context.
Though the application works fine. Only execution of jUnit test case shows issues.



The project is a maven project and it works fine. I have issue while executing the test case.From the excepetion I have got, it looks likes there is an issue in loading the entityManagerFactory bean, in the spring-jpa.xml. Below is the Spring-jpa.xml file that is being used.

Spring-jpa.xml


Im not sure about the reason for the error any help on this issue is much appreciated. Thanks in advance
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic