This content has been marked as final.
Show 4 replies
-
1. Re: Seam and Hibernate-all.jar
sandman202 Jun 26, 2007 4:14 PM (in response to sandman202)I was able to replace the files described along with ejb3-persistence.jar in place of hibernate-all.jar and so far it seems to be working fine.
-
2. Re: Seam and Hibernate-all.jar
ellenzhao Jun 26, 2007 4:29 PM (in response to sandman202)You might want to pick up the latest Seam-compatible hibernate related jars from the Seam CVS repository:
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamRepository
The latest revision has the very recent hibernate related jars. I tested hibernate-all.jar and it worked well under various environments. -
3. Re: Seam and Hibernate-all.jar
jimk1723 Jun 29, 2007 4:26 PM (in response to sandman202)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? -
4. Re: Seam and Hibernate-all.jar
jimk1723 Jun 29, 2007 4:43 PM (in response to sandman202)Ah, wrong data source type; I needed this:
<persistence-unit name="my-project" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <non-jta-data-source>java:/my-projectDatasource</non-jta-data-source> <properties> ...