New hibernate dependencies from 5.3.1 to 5.3.2
----------------------------------------------

                 Key: NXBT-209
                 URL: https://jira.nuxeo.org/browse/NXBT-209
             Project: Nuxeo ECM Build/Test Environment
          Issue Type: Problem
          Components: Distribution
            Reporter: Benoit Delbosc
            Assignee: Julien Carsique


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to