[jboss-user] [JBoss Seam] - Re: Seam and Hibernate-all.jar
jimk1723
do-not-reply at jboss.com
Fri Jun 29 16:26:37 EDT 2007
This seems related to my issue; I'm trying to upgrade the Hibernate Annotations to use the @SQLInsert annotations. I replaced hibernate-all.jar with the new jars you listed, but I'm now getting an exception when I try and run my unit tests:
| [testng] javax.persistence.PersistenceException: org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA TransactionManager
| [testng] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:737)
| [testng] at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121)
| [testng] at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
| [testng] at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
| [testng] at com.tmcs.attraction.AttractionGenreTest.testHibernateExtensions(AttractionGenreTest.java:14)
| [testng] Caused by: org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA TransactionManager
| [testng] at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:329)
| [testng] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
| [testng] at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
| [testng] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:730)
| [testng] ... 26 more
| [testng] ... Removed 22 stack frames
|
Anyone know where this is coming from?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059325#4059325
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059325
More information about the jboss-user
mailing list