Only 49 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

No SessionFactory specified(IllegalArgumentException)  RSS feed

 
VenkataPrasad Regula
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a spring hibernate code. To my knowledge the code is correct. I am not able to identify where it is going wrong. In the DAO class I declared SessionFactory variable. It says
Caused by: java.lang.IllegalArgumentException: No SessionFactory specified
at org.springframework.util.Assert.notNull(Assert.jav a:112)
at org.springframework.orm.hibernate3.SessionFactoryU tils.doGetSession(SessionFactoryUtils.java:283)


EmployeeDaoImpl

application.xml

Client Code

Stack Trace
 
Tekchand Prasad
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This can be caused by a dirty classpath with different versions of Spring libraries all over the place.
Cleanup it and align it to the one and same Spring version with the correct versioned dependencies.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!