0 Replies Latest reply on May 31, 2009 8:57 PM by cordbhkj.cordbhkj.googlemail.com

    test failure in mavenized JBoss Seam DVD Store

    cordbhkj.cordbhkj.googlemail.com

      Finally I finished the mavinization of the JBoss Seam DVD Store Example. The Example runs on JBoss AS 5.1GA as aspected but there is still a test failure. I have no idea how to fix it.


      The Maven project structure:
      project - JBoss Seam DVD Store
      module - EnterpriseJavaBeans
      module - WebApplication
      module - EnterpriseApplication
      module - Distribution


      All test are executed in module - EnterpriseJavaBeans


      Test Results:
      Failed tests: testTopProducts(com.jboss.dvd.seam.test.StoreManagerTest)
      Tests run: 11, Failures: 1, Errors: 0, Skipped: 0


      Error Message:
      ERROR org.hibernate.ejb.AbstractEntityManagerImpl Unable to mark for rollback on PersistenceException:
      java.lang.IllegalStateException: com.arjuna.ats.internal.jta.transaction.arjunacore.nosuchtx com.arjuna.ats.internal.jta.transaction.arjunacore.nosuchtx No such transaction!
              at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.setRollbackOnly(BaseTransaction.java:189)
              at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.setRollbackOnly(BaseTransactionManagerDelegate.java:135)
              at org.hibernate.ejb.AbstractEntityManagerImpl.markAsRollback(AbstractEntityManagerImpl.java:421)
              at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:576)
              at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
              at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:226)
              at org.jboss.seam.persistence.EntityManagerProxy.persist(EntityManagerProxy.java:137)
              at org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.persist(FullTextEntityManagerImpl.java:82)
              at org.jboss.seam.persistence.EntityManagerProxy.persist(EntityManagerProxy.java:137)
              at com.jboss.dvd.seam.test.ProductUnitTest$1.testComponents(ProductUnitTest.java:36)
              at org.jboss.seam.mock.AbstractSeamTest$ComponentTest.run(AbstractSeamTest.java:162)
              at com.jboss.dvd.seam.test.ProductUnitTest.testRequiredAttributes(ProductUnitTest.java:26)