Hi,

yes it's possible, depending of your startup order. Do you install the hibernate feature before jpa ?

However, Karaf 3.0.2 includes JPA 1.0.1 (as Karaf 2.4.0):

<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&quot;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>

Are you sure about the jpa version ? Don't you use Karaf 3.0.1 ?

Regards
JB


On 11/29/2014 10:34 PM, matthjes wrote:
Hi,

I'm using Karaf 3.0.2 and I'm desperately trying to get a small example with
Hibernate working. However, Karaf always prints out that no providers are
available.

I looked into the provided services and found that Karaf 3.0.2 uses Aries
JPA 1.0.0 while Karaf 2.4.0 uses Aries JPA 1.0.1. My example works with
2.4.0 (there are some error messages about Hibernate proxy and wiring, but
the table is there). Why does Karaf 3.0.2 uses an older Aries JPA version.
Could this older version be the reason why my Hibernate example does not
work with 3.0.2?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-3-0-2-and-Hibernate-tp4036790.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

Reply via email to