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
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
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
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
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
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
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:
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
*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;
>
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
Sure,
org.apache.felix
maven-bundle-plugin
true
META-INF/persistence.xml
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:
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;
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
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 |
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
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
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
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
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
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.
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()>
22 matches
Mail list logo