-->
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.  [ 9 posts ] 
Author Message
 Post subject: Is JTA now required in 2.1?
PostPosted: Thu Dec 04, 2003 12:56 pm 
Beginner
Beginner

Joined: Mon Sep 08, 2003 6:52 am
Posts: 46
I couldn't get hibernate 2.1 to run without it...

H


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 4:34 pm 
Expert
Expert

Joined: Tue Sep 16, 2003 4:06 pm
Posts: 318
Location: St. Petersburg, Russia
Just add jta.jar to the classpath :)
it comes with Hibernate distribution


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 4:42 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
...but if it is not required - then we should not require it, right ? ;)

Is it actually required now ? (I don't think so....Gavin?)

What happens when you start without it ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 4:46 pm 
Expert
Expert

Joined: Tue Sep 16, 2003 4:06 pm
Posts: 318
Location: St. Petersburg, Russia
2.0.3 did not require it.
2.1 (beta6 at least) fails to start (class not found exception if I remember correctly)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 4:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
dimas wrote:
2.0.3 did not require it.
2.1 (beta6 at least) fails to start (class not found exception if I remember correctly)



ok - would have liked a stacktrace better ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 4:59 pm 
Expert
Expert

Joined: Tue Sep 16, 2003 4:06 pm
Posts: 318
Location: St. Petersburg, Russia
Code:
- processing one-to-one association property references
- processing foreign key constraints
- Using dialect: net.sf.hibernate.dialect.OracleDialect
- Use outer join fetching: true
- No connection properties specified - the user must supply JDBC connections
- No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
- Use scrollable result sets: true
- JDBC 2 max batch size: 15
- echoing all SQL to stdout
- Query language substitutions: {false=0, no='N', yes='Y', true=1}
- cache provider: net.sf.ehcache.hibernate.Provider
- instantiating and configuring caches
- building session factory
- no JNDI name configured

java.lang.NoClassDefFoundError: javax/transaction/Synchronization
   at net.sf.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:306)
   at net.sf.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:310)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 5:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
ok - look at the code and me wonders how you could run 2.0 without jta.jar on the classpath....?

..but our VERSIONS file says jta.jar is optional - so either that file should be updated or code has to be changed in sessionimpl to avoid force load of jta....submit it to the JIRA and let Gavin fry ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 9:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
It is required to be in the classpath in 2.1


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 05, 2003 6:34 am 
Beginner
Beginner

Joined: Mon Sep 08, 2003 6:52 am
Posts: 46
gavin wrote:
It is required to be in the classpath in 2.1


I have just submitted a patch, HB-525, that patches the README file.

H


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