I think you got me wrong:
Here's the jpa feature in Karaf 3.0.2:
<feature name="jpa" version="1.0.1" description="OSGi Persistence
Container 2.0" resolver="(obr)">
<details>JPA 2.0 implementation provided by Apache Aries JPA
1.0.1. NB: this feature doesn"t provide the JPA engine, you have to
install one by yourself (OpenJPA for instance)</details>
<bundle start-level="30"
dependency="true">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
<bundle start-level="30"
dependency="true">mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1</bundle>
<bundle
start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/1.0.0</bundle>
<bundle
start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint.aries/1.0.1</bundle>
<bundle
start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.0</bundle>
<bundle
start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.container.context/1.0.1</bundle>
</feature>
Here's the jpa feature in Karaf 2.4.0:
<feature name="jpa" description="OSGi Persistence Container"
version="1.0.1" resolver="(obr)">
<details>JPA 2.0 implementation provided by Apache Aries JPA
1.0.1. NB: this feature doesn't provide the JPA engine, you have to
install one by yourself (OpenJPA for instance)</details>
<bundle dependency="true"
start-level="30">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
<bundle dependency="true"
start-level="30">mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1</bundle>
<bundle dependency="true"
start-level="20">mvn:org.apache.aries/org.apache.aries.util/1.1.0</bundle>
<bundle
start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/1.0.0</bundle>
<bundle
start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.0</bundle>
<bundle
start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.container.context/1.0.1</bundle>
<conditional>
<condition>aries-blueprint</condition>
<bundle
start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint.aries/1.0.1</bundle>
</conditional>
</feature>
So it's exactly the same.
However, if you do feature:install jpa (without the version), the
version of the feature installed is not 1.0.1 but 1.0.2:
<feature name="jpa" description="OSGi Persistence Container"
version="1.0.2" resolver="(obr)">
<details>JPA 2.1 implementation provided by Apache Aries JPA
1.0.2. NB: this feature doesn't provide the JPA engine, you have to
install one by yourself (OpenJPA for instance)</details>
<bundle dependency="true"
start-level="30">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
<bundle dependency="true"
start-level="30">mvn:org.hibernate.javax.persistence/hibernate-jpa-2.1-api/1.0.0.Final</bundle>
<bundle dependency="true"
start-level="20">mvn:org.apache.aries/org.apache.aries.util/1.1.0</bundle>
<bundle
start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/1.0.1</bundle>
<bundle
start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.1</bundle>
<bundle
start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.container.context/1.0.2</bundle>
<conditional>
<condition>aries-blueprint</condition>
<bundle
start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint.aries/1.0.2</bundle>
</conditional>
</feature>
This one contains the "new" JPA bundles, but not backward compatible
with JPA 2.0 (only JPA 2.1 compliant).
Karaf 3.0.3 will be released roughly in 15 days.
As a workaround, you can create your own features XML containing the jpa
1.0.2 feature.
Regards
JB
On 11/30/2014 07:33 AM, matthjes wrote:
So does this mean that 3.0.2 uses the wrong Aries versions? As I mentioned,
my example works with 2.4.0. When will 3.0.3 be released?
What do you mean with "the jpa is 3.0.1"? How can I update to 3.0.3?
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-3-0-2-and-Hibernate-tp4036790p4036797.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com