I changed all the EJBs in my app to pojo, and used Seam entityManager. I got this error when I ran my test that extends SeamTest:
[testng] Caused by: java.lang.RuntimeException: org.hibernate.TransactionExce ption: Could not register synchronization for container transaction Here is the persistence-test.xml: | <persistence-unit name="n3"> | <provider>org.hibernate.ejb.HibernatePersistence</provider> | <jta-data-source>java:/n3TestDatasource</jta-data-source> | <properties> | <property name="hibernate.hbm2ddl.auto" value="create-drop"/> | <property name="hibernate.cache.use_query_cache" value="true"/> | <property name="hibernate.show_sql" value="true"/> | <property name="jboss.entity.manager.factory.jndi.name" value="java:/n2EntityManagerFactory"/> | <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider" /> | <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/> | <property name="hibernate.search.default.directory_provider" value="org.hibernate.search.store.FSDirectoryProvider"/> | <property name="hibernate.search.default.indexBase" value="C:\temp\testLuceneIndex"/> | </properties> | </persistence-unit> How do I make tests run for Pojos? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062711#4062711 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062711 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
