Re: Enable reference: protocol in Karaf

2018-07-09 Thread Jean-Baptiste Onofré
No problem, I will create the Jira based on your description. Thanks Regards JB On 09/07/2018 15:05, Matteo Rulli wrote: > Hello, > Thank you for your help. Apparently I cannot login or create an issue at > the https://ops4j1.jira.com/ website. What is the right procedure to > file a bug there?

Re: Enable reference: protocol in Karaf

2018-07-09 Thread Matteo Rulli
Hello, Thank you for your help. Apparently I cannot login or create an issue at the https://ops4j1.jira.com/ website. What is the right procedure to file a bug there? By the way, I also tried adding the dynamic import to the probe with: @ProbeBuilder public

Re: Enable reference: protocol in Karaf

2018-07-09 Thread Jean-Baptiste Onofré
bundle() method comes from the PaxExam probe. A possible issue is that PaxExam probe doesn't have the DynamicImport-Package and so it doesn't use the URL. Can you please create a Jira at OPS4J PaxExam ? I will take a look. In the mean time, using the bundle context as workaround is fine.

Re: Enable reference: protocol in Karaf

2018-07-09 Thread Matteo Rulli
And the reference protocol works also if I install the exploded bundle from the test method with: @Test public void testCase() throws Exception { assertNotNull(bcontext);

Re: Enable reference: protocol in Karaf

2018-07-09 Thread Matteo Rulli
Hi, I’m using a custom Karaf distro where I modify the framework feature in order to include the pax-url-reference bundles in the startup.properties through the karaf-maven-plugin. Apparently, the pax-url-reference bundles are installed correctly and they work because if I start the test, I

Re: Enable reference: protocol in Karaf

2018-07-09 Thread Jean-Baptiste Onofré
Hi Matteo, it seems you are using in Pax Exam. Do you use your custom dispo in Pax Exam ? I suspect that you use the standard Karaf distribution coming with Pax Exam, so you will need to install pax-url-reference in @Configuration of your test. Regards JB On 09/07/2018 13:00, Matteo Rulli

Re: Enable reference: protocol in Karaf

2018-07-09 Thread Matteo Rulli
If I set bundle("reference:file:/Users/username/git/contoso/iot/project-develop/support/project.sc.servlet/target/classes/“), In the test opts (i.e. the absolute path of target folder) I get the same exception reported in the previous email (the data/tmp (Is a directory) one). Matteo > On 9

Re: Enable reference: protocol in Karaf

2018-07-09 Thread Francois Papon
Ok, but I see in your code : bundle("reference:file:target/classes/") Could you try with the full path of the repository ? Le 09/07/2018 à 14:50, Matteo Rulli a écrit : > Yes. If I remove the bundle(“reference:….”) line in the test ops and I > manually do > >

Re: Enable reference: protocol in Karaf

2018-07-09 Thread Matteo Rulli
Yes. If I remove the bundle(“reference:….”) line in the test ops and I manually do install reference:file:/Users/username/git/contoso/iot/project-develop/support/project.sc.servlet/target/classes/ Bundle ID: 131 flairbit@root()> start 131 Everything works just fine. Matteo > On 9 Jul 2018,

Re: Enable reference: protocol in Karaf

2018-07-09 Thread Francois Papon
Does it work's without bundle("...") ? Le 09/07/2018 à 14:09, Matteo Rulli a écrit : > I’m using the Karaf version 4.1.2 and the test is running on MAC-OS. > >> On 9 Jul 2018, at 12:07, Francois Papon > > wrote: >> >> Which version of Karaf are you using ? >>

Re: Enable reference: protocol in Karaf

2018-07-09 Thread Matteo Rulli
I’m using the Karaf version 4.1.2 and the test is running on MAC-OS. > On 9 Jul 2018, at 12:07, Francois Papon wrote: > > Which version of Karaf are you using ? > > regards > > François > > > Le 09/07/2018 à 14:05, matteor a écrit : >> Sorry. It seems that message formatting in nabble does

Re: Enable reference: protocol in Karaf

2018-07-09 Thread Francois Papon
Which version of Karaf are you using ? regards François Le 09/07/2018 à 14:05, matteor a écrit : > Sorry. It seems that message formatting in nabble does not work very well... > Here is the message with all the details: > > I tried to enable the reference protocol in Karaf adding these bundles

Re: Enable reference: protocol in Karaf

2018-07-09 Thread matteor
Sorry. It seems that message formatting in nabble does not work very well... Here is the message with all the details: I tried to enable the reference protocol in Karaf adding these bundles to the startup.properties: mvn\:org.ops4j.base/ops4j-base-lang/1.5.0 = 11

Re: Enable reference: protocol in Karaf

2018-07-09 Thread Francois Papon
Hi Matteo, We can't see your additionnals info, can you re-paste ? regards, François Le 09/07/2018 à 13:59, matteor a écrit : > Hello! > > I tried to enable the reference protocol in Karaf adding these bundles to > the startup.properties: > > > > And in fact now I can see the installed