4 Replies Latest reply on Jun 29, 2007 4:43 PM by jimk1723

    Seam and Hibernate-all.jar

    sandman202

      I have looked on the Hibernate website as-well-as the JBoss website to see if there is a more current hibernate-all.jar. If there isn't, would someone please either link/direct me to a web page or describe the files necessary for replacing this library?

      According to this link: http://forum.hibernate.org/viewtopic.php?p=2353945&sid=3a8068e0b9278948af2d6258f573bca8
      it says to use the latest versions of Hibernate Search / Annotations / commons-annotations / Core. I tried this without any success.

      On a side note, I have tried joining the Hibernate forum 2 different times within the past 4 weeks with my questions. I never received a confirmation email for activating my account. When I tried emailing a couple of people, I don't get any response. I am unable to login, because it says to contact the forum administrator. There isn't a link or email address to the forum administrator. I am stuck.

        • 1. Re: Seam and Hibernate-all.jar
          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

            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

              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

                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>
                ...