File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes problems with hibernate.cfg.xml: Initial SessionFactory creation failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "problems with hibernate.cfg.xml: Initial SessionFactory creation failed" Watch "problems with hibernate.cfg.xml: Initial SessionFactory creation failed" New topic
Author

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

howard franklin
Greenhorn

Joined: Sep 09, 2012
Posts: 20
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

Joined: Mar 07, 2010
Posts: 1680
    
    7

Looks like you are missing a jar. Are you using Maven?
http://mvnrepository.com/artifact/javax.transaction/jta/1.1

If not get the jar here:
http://repo1.maven.org/maven2/javax/transaction/jta/1.1/jta-1.1.jar

[How To Ask Questions][Read before you PM me]
howard franklin
Greenhorn

Joined: Sep 09, 2012
Posts: 20
Thank you. That did it. I really appreciate your help

Howard
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problems with hibernate.cfg.xml: Initial SessionFactory creation failed