-->
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: SessionFactoryObjectFactory fails to initialize
PostPosted: Wed Jan 07, 2004 8:56 pm 
Regular
Regular

Joined: Wed Jan 07, 2004 5:16 pm
Posts: 65
Location: CA, USA
I have have two test apps: one fails, the other works ok. Each persists a simple class to a simple db2 table.

For the app that fails, comparing the log4j log to the app that runs ok, it looks like the SessionFactoryObjectFactory fails to initialize, ie I do not see the 'initializing class SessionFactoryObjectFactory' message in the log (for the app that fails). Following this I get the following exception:
net.sf.hibernate.MappingException: could not instantiate id generator

What would cause this? As far as I can tell the hibernate.cfg.xml files for both apps are identical (apart from pointing to different mapping files), and the mapping files themselves are similar in structure (although using different classes and mapping to different classes.

Any ideas where I can start looking?

Thanks,
Kevin Hooke


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2004 7:32 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Check your <generator class="..."/> line in the broken one. It probably sucks.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2004 7:35 pm 
Regular
Regular

Joined: Wed Jan 07, 2004 5:16 pm
Posts: 65
Location: CA, USA
Got it.. thanks


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.