Win a copy of Spark in Action this week in the Open Source Projects forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

[Spring][JPA][Hibernate] NoSuchBeanDefinitionException: No qualifying bean of type [hib.SessionFacto

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ALL
Sorry for my english I leave in french zone ;)
I use Hibernate SessionManager but now i decide to migrate vers JPA for having acces to fonctionality like @PreUpdated @PreCreated ...

I make this parameters but i have this mistake.


I show you what i've done
this is my files

persistence.xml


applicationContext-dao.xml


applicationContext-ressources.xml


applicationContext.xml


SfdDao.java


GenericDao.java


You have to know that GenericDAOImpl provide from genericDAO library https://code.google.com/p/generic-dao/

I show his code


Thanks for your help.
 
Ranch Hand
Posts: 499
Spring AngularJS Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amadou Lamine Kebe,

Remove the ("sfdDao") after @Repository in your SfdDao class and try running the code.
 
    Bookmark Topic Watch Topic
  • New Topic