Hi, I am a hibernate newbie, I am trying to generate DDL files from my hibernate mappings. I am using Java 5 enum constructs along with the EnumUserType pattern that I found elsewhere in these forums. On running SchemaExport i get the following output:
- Hibernate 3.0rc1
- hibernate.properties not found
- using CGLIB reflection optimizer
- using JDK 1.4 java.sql.Timestamp handling
- Mapping file: D:\work\workspace\fab2core\src\com\xmltravel\fab\core\dao\impl\hibernate\actors\mapping\Actors.hbm.xml
- Mapping class: com.xmltravel.fab.core.domain.actors.User -> user
- Mapping class: com.xmltravel.fab.core.domain.actors.Agent -> agent
- Mapping class: com.xmltravel.fab.core.domain.actors.Organisation -> organisation
- Mapping class: com.xmltravel.fab.core.domain.actors.ContactInfo -> contactinfo
- Mapping class: com.xmltravel.fab.core.domain.actors.Address -> address
- Using dialect: org.hibernate.dialect.HSQLDialect
- processing extends queue
- processing collection mappings
- processing association property references
- processing foreign key constraints
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:111)
at org.hibernate.cfg.Configuration.iterateGenerators(Configuration.java:540)
at org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:633)
at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:59)
at org.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:306)
So does anyone know where javax/transaction/SystemException comes from and why it might be missing?
Cheers,
Adam.
|