-->
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.  [ 2 posts ] 
Author Message
 Post subject: error creating session factory
PostPosted: Tue Apr 25, 2006 2:48 pm 
Newbie

Joined: Tue Apr 25, 2006 2:39 pm
Posts: 1
Helo, I'm new at hibernate. I'm starting with a stand alone app. I loaded the configuration ok, but when I try to create the session factory I got this error:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/SystemException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.hibernate.id.IdentifierGeneratorFactory.class$(IdentifierGeneratorFactory.java:25)
at org.hibernate.id.IdentifierGeneratorFactory.<clinit>(IdentifierGeneratorFactory.java:76)
at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:152)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:181)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1152)
at HibernateUtil.getSession(HibernateUtil.java:49)
at PruebaHibernate.setConfiguration(PruebaHibernate.java:12)
at PruebaMySQL.main(PruebaMySQL.java:11)

It saw that it occurs within the LogFactory class.
I checked the libraries and they are all in the classpath.
thaks in advance
matías

Hibernate version:3.1
Name and version of the database you are using: MySQL 5.0


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 25, 2006 4:17 pm 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
You are missing jta.jar in your classpath. Consult the _README.txt File in the lib directory of the hibernate distribution for further required libraries

_________________
Please don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.