Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Jean-Baptiste Onofré
Hi Stephen, JPA 2 works as well. I think the problem is that your requirements are not match. I will do a sample to test. Would it be possible to share your project ? Regards JB On 06/06/2017 09:32 PM, smunro wrote: Thanks for the info Tim, The issue with this is that my company have

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
Thanks for the info Tim, The issue with this is that my company have strict rules over what we use and I had a hard enough time convincing them to use aries blueprint over the programmatic tracker api, so given my time limit, I don't think I'll be successfully getting any new tech added. I'm

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Timothy Ward
Hi, Have you considered using OSGi Transaction Control rather than blueprint’s integration? Apache Aries has an implementation of this pre-release OSGi R7 specification, and there are fewer moving parts. You can avoid deploying the blueprint/PAX JDBC pieces, and just use: A JPA provider

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
Thanks jbonofre, Looking at the sample, the main key differences I can see if your using openjpa and the jpa 1.0.0 spec. I tried using the 5.2.9 of hibernate as well as add org.hibernate.jpa to my import packages. I still shows the same log entry: waiting for dependencies

Re: Unable to deploy jna 4.3.0 in Karaf 4.1.1 or 4.0.9

2017-06-06 Thread Guillaume Nodet
Fwiw, the "java.lang.IllegalStateException: No inital startlevel yet" exception is a felix framework issue, FELIX-5649. 2017-06-06 8:23 GMT+02:00 Shyalika Benthotage < shyalika.benthot...@medialinksaustralia.com.au>: > Hi, > > I think the issue is in the container, not jna. I tried to install

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Jean-Baptiste Onofré
You can also take a look on: https://github.com/jbonofre/acna15/tree/master/persistence By the way, we are in the process of integrating bunch of samples in the Karaf distribution. Regards JB On 06/06/2017 04:09 PM, smunro wrote: This is the only other useful source of info the the problem

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
This is the only other useful source of info the the problem I'm having: https://github.com/cschneider/Karaf-Tutorial/issues/22 Seems that upgrading hibernate to 5.2.9 might work. I'll need to give it a try. I'll let you know how I get on... -- View this message in context:

Hibernate ORM with PostgresSql with Karaf 4.1.0

2017-06-06 Thread Jack
I used Hibernate ORM with PostgresSql. And below is the persistence.xml for Hibernate ORM with PostgresSql. http://java.sun.com/xml/ns/persistence; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://java.sun.com/xml/ns/persistence

Re: Hibernate ORM with PostgresSql with Karaf 4.1.0

2017-06-06 Thread Jack
*Regards,Suman K+91-9886748169* On Tue, Jun 6, 2017 at 6:15 PM, Jack [via Karaf] < ml+s922171n4050580...@n3.nabble.com> wrote: > I used Hibernate ORM with PostgresSql. > > And below is the persistence.xml for Hibernate ORM with PostgresSql. > > > http://java.sun.com/xml/ns/persistence; >

Hibernate ORM with PostgresSql with Karaf 4.1.0

2017-06-06 Thread Jack
I used Hibernate ORM with PostgresSql. And below is the persistence.xml for Hibernate ORM with PostgresSql. http://java.sun.com/xml/ns/persistence; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://java.sun.com/xml/ns/persistence

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
Sure, org.apache.felix maven-bundle-plugin true META-INF/persistence.xml

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Jean-Baptiste Onofré
Can you share your MANIFEST (import and required service especially) ? Regards JB On 06/06/2017 01:47 PM, smunro wrote: Thanks jbonofre, I've updated the blueprint to have the following: With the updated schema refs. The bundle is still not starting, and is now stuck in a grace period:

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
Updated blueprint: 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/v2.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
Thanks jbonofre, I've updated the blueprint to have the following: With the updated schema refs. The bundle is still not starting, and is now stuck in a grace period: org.desolateplanet.sgs-ui.auth/0.0.9.SNAPSHOT is waiting for dependencies

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
jpa | 2.3.0| | Started | enterprise-4.0.8 | OSGi Persistence Container hibernate| 3.3.2.GA | | Started | enterprise-4.0.8 | Hibernate 3.x JPA persistence engine support hibernate| 4.3.6.Final |

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Jean-Baptiste Onofré
Without version, the jpa feature installed is 2.0.0, so you have to update the namespace in the blueprint. Regards JB On 06/06/2017 01:15 PM, smunro wrote: Hello jbonofre, Thanks for the swift reply. Not sure if this answers your question, but I have the following feature running: hibernate

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Jean-Baptiste Onofré
Can you paste the output of: feature:list -i|grep -i jpa ? Thanks, Regards JB On 06/06/2017 01:15 PM, smunro wrote: Hello jbonofre, Thanks for the swift reply. Not sure if this answers your question, but I have the following feature running: hibernate | 4.3.6.Final

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
Hello jbonofre, Thanks for the swift reply. Not sure if this answers your question, but I have the following feature running: hibernate | 4.3.6.Final | x| Started enterprise-4.0.8 | Hibernate 4.3.x JPA persistence engine support And my feature file has

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Jean-Baptiste Onofré
Hi, the namespace depends of the jpa version you use. If you use jpa 2.x feature, the namespace is http://aries.apache.org/xmlns/jpa/v2.0.0. Can you check the jpa feature you are using ? Regards JB On 06/06/2017 11:47 AM, smunro wrote: Hello, I am trying to get JPA & Hibernate working in

Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
Hello, I am trying to get JPA & Hibernate working in a OSGI bundle, deployed on Karaf 4.0.8. Regardless of what tutorials or guides I follow, I am met with the following log entry: org.desolateplanet.authentication-db-impl/0.0.9.SNAPSHOT is waiting for namespace handlers

Re: Unable to deploy jna 4.3.0 in Karaf 4.1.1 or 4.0.9

2017-06-06 Thread Jean-Baptiste Onofré
Thanks for the update. I just tried and it worked. Let me check if I can reproduce the issue. Regards JB On 06/06/2017 08:23 AM, Shyalika Benthotage wrote: Hi, I think the issue is in the container, not jna. I tried to install cxf and it gives me the same exception causing karaf to exit.

Re: Unable to deploy jna 4.3.0 in Karaf 4.1.1 or 4.0.9

2017-06-06 Thread Shyalika Benthotage
Hi, I think the issue is in the container, not jna. I tried to install cxf and it gives me the same exception causing karaf to exit. The steps I used are *karaf*@root()> feature:repo-add cxf Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/RELEASE/xml/features *karaf*@root()>