Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-209

New hibernate dependencies from 5.3.1 to 5.3.2

    XMLWordPrintable

    Details

    • Type: Problem
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Distribution

      Description

      After updating the parent pom version of an addon from org.nuxeo.ecm.platform 5.3.1 to 5.3.2,
      addon's tests fails:

      java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager
      at org.hibernate.ejb.EventListenerConfigurator.<init>(EventListenerConfigurator.java:68)
      at org.hibernate.ejb.Ejb3Configuration.<init>(Ejb3Configuration.java:129)
      at org.nuxeo.ecm.core.persistence.HibernateConfiguration.setupConfiguration(HibernateConfiguration.java:94)
      at org.nuxeo.ecm.core.persistence.HibernateConfiguration.getFactory(HibernateConfiguration.java:114)
      at org.nuxeo.ecm.core.persistence.HibernateConfiguration.getFactory(HibernateConfiguration.java:163)
      at org.nuxeo.ecm.core.persistence.PersistenceProvider.openPersistenceUnit(PersistenceProvider.java:50)
      at org.nuxeo.ecm.core.persistence.PersistenceProvider.doAcquireEntityManager(PersistenceProvider.java:68)
      at org.nuxeo.ecm.core.persistence.PersistenceProvider.run(PersistenceProvider.java:182)

      This can be solved by adding 2 new dependencies:

      <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-commons-annotations</artifactId>
      <version>3.3.0.ga</version>
      </dependency>
      <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-validator</artifactId>
      <version>4.0.2.GA</version>
      </dependency>

      (versions chosen are the closest of 3.2.1 available on mvnrepository and it requires hibernate-validator > 3.1.0)

      This is weird because hibernate libs stay the same (except the new oracle 11 patch) and nuxeo-core-persistence code is the same.

      Attached is the list of dependencies (mvn dependencies:list) for both 5.3.1 and 5.3.2.

        Attachments

        1. dependency-5.3.1.txt
          10 kB
          Benoit Delbosc
        2. dependency-5.3.2.txt
          11 kB
          Benoit Delbosc

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: