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

2017-06-05 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. The

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

2017-06-05 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()> feature:in

Re: PaxExam test using hibernate validator can't find validator

2017-06-05 Thread Achim Nierbeck
hmm ... is it possible for you to show us your feature file? Or maybe it's possible for you to start writing a simpler example that also fails. I doubt there is something wrong on Karaf or Pax Exam. With a simple example it might be easier for us to show you where the crucial step is. regards, Ac

RE: PaxExam test using hibernate validator can't find validator

2017-06-05 Thread KARR, DAVID
Ok, I guess I’ve resolved my package resolution issues. I finally realized that "hibernate-validator-osgi-features" is not a feature id, but simply the “name” property in the “features” element in the features.xml file. When I changed my feature reference to “hibernate-validator” (you may have

Re: PaxExam test using hibernate validator can't find validator

2017-06-05 Thread Achim Nierbeck
Hi, You can extract the resolution chain from that message: org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=usl-fraudcheck; type=karaf.feature; version="[2.5.0.SNAPSHOT,2.5.0.SNAPSHOT]"; filter:="(&(osgi.identity=usl-

RE: PaxExam test using hibernate validator can't find validator

2017-06-05 Thread KARR, DAVID
Clearly, I used the “hibernate-validator-osgi-karaf-features” name because I was under the mistaken impression that the file name represented the feature name. However, after changing that feature name reference, I’m now getting a different but related error: org.osgi.service.resolver.Resolutio

Re: PaxExam test using hibernate validator can't find validator

2017-06-05 Thread Achim Nierbeck
Hi, I'm not sure I follow. in the feature file I only see one feature which matches your criteria ... it's: hibernate-validator see also this file: https://repo1.maven.org/maven2/org/hibernate/hibernate-validator-osgi-karaf-features/5.4.1.Final/hibernate-validator-osgi-karaf-features-5.4.1.Final-

RE: PaxExam test using hibernate validator can't find validator

2017-06-05 Thread KARR, DAVID
Ok, makes sense, but it still isn’t quite there yet. In the features file in a module called “usl-base”, I added the following repository definition next to a couple of existing ones: mvn:org.hibernate/hibernate-validator-osgi-karaf-features/5.4.1.Final/xml/features In the “usl-base” featur

Re: PaxExam test using hibernate validator can't find validator

2017-06-05 Thread Achim Nierbeck
hmm ... to me this artifact: org.hibernate:hibernate-validator-osgi-karaf-features doesn't sound like a bundle but more like a feature. and according to this[1], it is a feature file. So make sure you reference the "hibernate-validator" feature in your own feature file. if you want to define a

PaxExam test using hibernate validator can't find validator

2017-06-05 Thread KARR, DAVID
I'm working on a codebase that builds a bunch of OSGi modules, and deploys to karaf. I'm attempting to implement javax.validation using Hibernate Validator. I was able to get the correct Maven artifacts in order for my plain unit tests to work. However, when I ran my PaxExam integration test,