Re: Apache Karaf 4.x JPA - Working example

2018-07-24 Thread Francois Papon
Great ! You're welcome ;) regards François Papon fpa...@apache.org Le 25/07/2018 à 09:58, Miroslav Beranič a écrit : > Hi François, > > thank you for in-depth explanation. > > By Blueprint XML I mean: > > datasource.xml: > > http://www.osgi.org/xmlns/blueprint/v1.0.0"; >    xmlns:jpa="

Re: Apache Karaf 4.x JPA - Working example

2018-07-24 Thread Miroslav Beranič
Hi François, thank you for in-depth explanation. By Blueprint XML I mean: datasource.xml: http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:jpa="http://aries.apache.org/xmlns/jpa/v2.0.0"; xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.2.0"; xmlns:xsi="

Re: Apache Karaf 4.x JPA - Working example

2018-07-24 Thread Jean-Baptiste Onofré
Hi Miroslav, we defined the JPA Engine (provider) as a capability in the feature. It gives the indication about the engine we want to use. However, this is a workaround as this capability should be provided directly by the hibernate feature, not the end user feature. I created KARAF-5850 for the

Re: Apache Karaf 4.x JPA - Working example

2018-07-24 Thread François Papon
Hi Miroslav, The changes are : - use the H2 drivers with class declaration - add jndi feature - add capabilities for Hibernate Persistence Provider The provider module emmebed the persistence.xml with the Persistence provider declaration inside so it require the Persistence provider. We have :

Re: Apache Karaf 4.x JPA - Working example

2018-07-24 Thread Miroslav Beranič
Hi, @Jean-Baptiste Onofré, François: I can confirm, issues is fixed now. I can get JPA example working. I see output in Karaf Shell. but :) What was the fix ( so I can understand what was wrong, for any future case, other projects ): I see examples/karaf-jpa-example/karaf-jpa-example-features

Re: Apache Karaf 4.x JPA - Working example

2018-07-24 Thread Jean-Baptiste Onofré
Hi, François just fixed the JPA example of the DEV_GUIDE branch. I will add the corresponding examples itests tomorrow. Regards JB On 20/07/2018 16:17, Miroslav Beranič wrote: > Hi, > > I've upgraded my environment from ServiceMix 7.1.0-SNAPSHOT ( running > Karaf 4.0.9 ) to Karaf 4.1.x ( GitHu

Re: Apache Karaf 4.x JPA - Working example

2018-07-24 Thread Miroslav Beranič
Hi, so in the log ( log:tail ) I've seen this: ERROR [Karaf local console user karaf] Exception caught while executing command org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=karaf-jpa-example-provider; type=karaf.f

Re: Apache Karaf 4.x JPA - Working example

2018-07-24 Thread Jean-Baptiste Onofré
Thanks for the report. Let me double check. Regards JB Le 24 juil. 2018 à 09:42, à 09:42, "Miroslav Beranič" a écrit: >Hi, > >dear Jean-Baptiste Onofré. I am talking about this repository. It does >not >work. > >I've checked out https://github.com/jbonofre/karaf/tree/DEV_GUIDE > >$ git clone -

Re: Apache Karaf 4.x JPA - Working example

2018-07-24 Thread Miroslav Beranič
Hi, dear Jean-Baptiste Onofré. I am talking about this repository. It does not work. I've checked out https://github.com/jbonofre/karaf/tree/DEV_GUIDE $ git clone -b DEV_GUIDE https://github.com/jbonofre/karaf/tree/DEV_GUIDE karaf_dev_guide Build it with maven: $ mvn -DskipTests -Pfastinstall

Re: Apache Karaf 4.x JPA - Working example

2018-07-20 Thread Jean-Baptiste Onofré
Hi, the examples are for 4.2.x only not 4.1.x. All versions are contained in the JPA example itself, using hibernate provided by Karaf 4.2.1. Regards JB On 20/07/2018 16:17, Miroslav Beranič wrote: > Hi, > > I've upgraded my environment from ServiceMix 7.1.0-SNAPSHOT ( running > Karaf 4.0.9 )

Apache Karaf 4.x JPA - Working example

2018-07-20 Thread Miroslav Beranič
Hi, I've upgraded my environment from ServiceMix 7.1.0-SNAPSHOT ( running Karaf 4.0.9 ) to Karaf 4.1.x ( GitHub ) branch and later on I've experimented with version 4.2.x. I was using linked linkes from Karaf home page ( https://karaf.apache.org/documentation.html ) to GitHub Examples - for JPA.