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
|