Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems with hibernate.cfg.xml: Initial SessionFactory creation failed

 
howard franklin
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought my problem had to do with the current_session_context_class.

I change from
<property name="hibernate.current_session_context_class">org.hibernate.context.ThreadLocalSessionContext</property>
to
<property name="current_session_context_class">thread</property>

but I am still having problems. Looking at the console looks like I got through everything
except for the current_session_context_class and the mapping.

 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
 
howard franklin
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. That did it. I really appreciate your help

Howard
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic