Hello,

I'm using Karaf 4.2 with Aries 2.7.0 and Hibernate 5.2.9.Final and when I run a 
persistence test (without pax-exam), I've the following error:

...
java.lang.NoSuchMethodError: 
javax.persistence.Table.indexes()[Ljavax/persistence/Index;
...

With the help of StackOverflow, I've understood that there was a dependency 
conflict between two libs defining the JPA spec 2.0 and 2.1. When running the 
test the maven dependencies are used to build the test classpath and it 
contains:

*         org\apache\aries\jpa\javax\persistence\javax.persistence_2.0\2.7.0

*         org\hibernate\javax\persistence\hibernate-jpa-2.1-api\1.0.0.Final

My question is: why does the Aries JPA container POM contain a dependency to 
JPA 2.0 
(http://central.maven.org/maven2/org/apache/aries/jpa/org.apache.aries.jpa.container/2.7.0/org.apache.aries.jpa.container-2.7.0.pom)
 while the Aries feature definition contains a reference to JPA 2.1 
(http://central.maven.org/maven2/org/apache/aries/jpa/jpa-features/2.7.0/jpa-features-2.7.0-features.xml)?

Thanks.

Christian N.




________________________________
Eaton Industries (France) S.A.S ~ Si?ge social: 110 Rue Blaise Pascal, Immeuble 
Le Vis?o - B?timent A Innovall?e, 38330, Montbonnot-St.-Martin, France ~ Lieu 
d'enregistrement au registre du commerce: Grenoble ~ Num?ro d'enregistrement: 
509 653 176 ~ Capital social souscrit et liber?:EUR 16215441 ~ Num?ro de TVA: 
FR47509653176

________________________________


Reply via email to