Re: Why does Karaf say this is a uses constraint?

2018-01-26 Thread Francois Papon
Hi Ryan, Can you share your pom.xml and your feature.xml ? François Le 26/01/2018 à 20:55, Ryan Moquin a écrit : > My bundle depends on an rdf4j bundle which has to use Guava 18.0, and > it also depends on a bundle that has to use Guava 20.0.  I have it set > to Guava 20.0 in my rkmoquin

Re: Why does Karaf say this is a uses constraint?

2018-01-26 Thread Ryan Moquin
My bundle depends on an rdf4j bundle which has to use Guava 18.0, and it also depends on a bundle that has to use Guava 20.0. I have it set to Guava 20.0 in my rkmoquin common bundle. I am actually trying to install an overall feature which includes some other features. It had been working fine

Re: Why does Karaf say this is a uses constraint?

2018-01-26 Thread Jean-Baptiste Onofré
Hi Ryan, can you try a refresh ? What's your import in the rkmoquin.common bundle ? Regards JB On 01/26/2018 03:40 PM, Ryan Moquin wrote: > I keep running into situations where I get a uses constraint, but the > complaint > is talking about an import and export chain that involve the exact

Re: Why does Karaf say this is a uses constraint?

2018-01-26 Thread Ryan Moquin
BTW - I'm using Karaf 4.1.4 when I get this... Thanks, Ryan On Fri, Jan 26, 2018 at 9:40 AM Ryan Moquin wrote: > I keep running into situations where I get a uses constraint, but the > complaint is talking about an import and export chain that involve the > exact same

Why does Karaf say this is a uses constraint?

2018-01-26 Thread Ryan Moquin
I keep running into situations where I get a uses constraint, but the complaint is talking about an import and export chain that involve the exact same dependency, such as with Guava below... why is this a uses constraint and how do you deal with it? Error executing command: Uses constraint

Re: Unable to get module classpath

2018-01-26 Thread Jean-Baptiste Onofré
By the way, you can find the examples that will be included in Karaf soon (with corresponding dev guide section): https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/karaf-jpa-example Regards JB On 01/26/2018 09:33 AM, GFO wrote: > Hi, here is the pastebin link :

Re: Unable to get module classpath

2018-01-26 Thread Jean-Baptiste Onofré
Hi, I would start by defining the TCCL (Thread Context ClassLoader). Second, I would check if you don't embed any Hibernate package, because it looks for SPI. So, your bundle should use the EntityManager. This entity manager can be injected by Aries JPA for instance. You can take a look on:

Re: Unable to get module classpath

2018-01-26 Thread GFO
Hi, here is the pastebin link : https://pastebin.com/USXC3cqC Thanks -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Unable to get module classpath

2018-01-26 Thread François Papon
Hi, We can't see your first error, can you repaste it ? François Le 26 janv. 2018 12:19 PM, GFO a écrit : > > I am facing a problem with one of my OSGi bundles. > When I start it, I have the following error : > >     > > It is not blocking for starting my

Unable to get module classpath

2018-01-26 Thread GFO
I am facing a problem with one of my OSGi bundles. When I start it, I have the following error : It is not blocking for starting my bundle, it is "Active". But when I try to execute a SQL command through my Java code, it only works with native queries. When I try to execute HQL