-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Initial Setup
PostPosted: Wed Jul 14, 2004 8:52 am 
Newbie

Joined: Wed Jul 14, 2004 8:44 am
Posts: 2
I have followed all the instructions in the tomcat quickstart. I am trying to connect to a sql server db . When I kick off the the connection I get this output:

INFO: Configured SessionFactory: null

I copied the sessionFqactory example but execution stops at the following line:
System.out.println("before");

sessionFactory = new Configuration().configure().buildSessionFactory();

System.out.println("after");

So "before" gets printed out but "after" does not. Is there anything obvious that I am missing?
Thanks

des


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 14, 2004 10:57 am 
Beginner
Beginner

Joined: Mon Nov 03, 2003 11:48 pm
Posts: 29
Is it finding your hibernate.cfg.xml file? I would suggest going to http://caveatemptor.hibernate.org/ and look at this class: http://cvs.sourceforge.net/viewcvs.py/h ... &view=auto


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 14, 2004 11:00 am 
Newbie

Joined: Wed Jul 14, 2004 8:44 am
Posts: 2
Yes it is finding the hibernate.cfg.xml as it outputs info about the datasource which is in this file.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.