Can you start from an empty karaf 4.0.5 and then do
feature:install openjpa jpa
This should install openjpa 2.4.1 and aries jpa 2.3.0 with
javax.persistence 2.0 and jta 1.2.
This configuration should work. So maybe something else you install
requires the jpa 2.1 spec.
Christian
On 07.07.2016 10:28, Bengt Rodehav wrote:
Reading your post again Christian I realize that I should not use JPA
2.1 but JPA 2.0.
I seem to have JPA 2.0 and JPA 2.1 installed at runtime:
/karaf@root()> la | grep -i jpa/
/ 37 | Active | 80 | 2.3.0 | Apache Aries JPA
Container API/
/ 38 | Active | 80 | 2.3.0 | Apache Aries JPA
blueprint/
/ 39 | Active | 80 | 2.3.0 | Apache Aries JPA
container/
/ 40 | Active | 80 | 2.3.0 | Apache Aries JPA support/
/ 70 | Active | 80 | 1.1 | Apache Geronimo
JSR-317 JPA 2.0 Spec API/
/106 | Active | 80 | 2.4.1 | OpenJPA Aggregate Jar/
/karaf@root()> la | grep -i persistence/
/ 17 | Active | 80 | 2.1.0.v201304241213 | Java Persistence API 2.1/
/175 | Active | 80 | 2.8.0.SNAPSHOT | Connect ::
persistence-util/
I don't really know why the JPA version 2.1 (2.1.0.v201304241213) is
being installed. I do not do this explicitly.
Looking at OpenJPA 2.4.1, it seems to depend on JTA 1.1 not JTA 1.2.
Looked again at my JPA version. I do use JPA 2.0. But I use version
1.1 of artifact geronimo-jpa_2.0_spec which caused me to believe I was
using JPA 1.1....
I'm still kind of confused. It would be thankful if you could tell me
what features (and versions of those features) I should install in
order to use the latest version (2.4.1) of OpenJPA.
/Bengt
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com