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.  [ 1 post ] 
Author Message
 Post subject: Simple unmanaged jar app - org.hibernate.impl.SessionFactory
PostPosted: Mon Sep 14, 2009 6:55 am 
Newbie

Joined: Thu Aug 27, 2009 3:56 pm
Posts: 10
I have a simple jar app that is not using JNDI or any other management; it runs fine locally, but when I deploy it on a different host, I get this in the log, then nothing happens from that point forward:

Sep 14 05:25:53 localhost.localdomain (SessionFactoryObjectFactory.java:82) INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured

In hibernate.cfg.xml, I have these two properties, which were indicated in the Configuration conception docs (Ch 3.7)
Code:
<property name="current_session_context_class" > thread </property>
   <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>


and I'm doing this in code to get my SessionFactory:
Code:
SessionFactory sf = new AnnotationConfiguration().configure().buildSessionFactory();


just like the docs, except I use the AnnotationConfiguration as I'm using annotations for mapping. And again, this works locally, just not where I really need it to work.


What can I do to make this fly?


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

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.