-->
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: SchemaExport with Java 5
PostPosted: Wed Apr 13, 2005 12:21 pm 
Newbie

Joined: Wed Apr 13, 2005 12:00 pm
Posts: 5
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.


Top
 Profile  
 
 Post subject: Solved but still a mystery
PostPosted: Thu Apr 14, 2005 8:35 am 
Newbie

Joined: Wed Apr 13, 2005 12:00 pm
Posts: 5
Just in case anyone ever encouters tha same problem...

I eventually found javax.transaction.SystemException in j2ee.jar, available as part of the Sun ApplicationServer.

However, I have no clue as to why it is required by the SchemaExport process.

Adam.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 14, 2005 12:43 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
they are part of jta.jar which is required (either via jta.jar or via a j2ee server)

_________________
Max
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.  [ 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.