Re: Waiting for dependent bundle

2014-03-27 Thread Freeman Fang
Hi, Could you please elaborate how you define the dependency between REST Service and ServiceImpl bundles? Using OSGi service? Using blueprint to refer the OSGi service? - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-3-26, at 下午8:07, Arun Manivannan

Re: Waiting for dependent bundle

2014-03-27 Thread Arun Manivannan
Thanks for the note Freeman.   Here is the relevant tags from the REST blueprint xml   jaxrs:server address=/coreservices id=rsServer         jaxrs:inInterceptors             ref component-id=logInbound/         /jaxrs:inInterceptors         jaxrs:serviceBeans             ref

Re: cellar and service properties

2014-03-27 Thread Natalius
If in my tracker I see the configuration admins I find my properties, good ! But I not have method to link my ServiceReference object of my method ServiceTracker#addingService to a Configuration object of configuration admin. How I do that ? Le 20.03.2014 14:19, Natalius a écrit : have you

RE: Karaf Java8

2014-03-27 Thread CLEMENT Jean-Philippe
Hi JB, Some modules which have been compiled with Java 8 fail to start. The problem is I have no clue if it's due to Karaf/Java8 or not... I'm stuck :S Did you make any progress? JP [@@ THALES GROUP INTERNAL @@] -Message d'origine- De : Jean-Baptiste Onofré

Re: cellar and service properties

2014-03-27 Thread Natalius
The service properties are missing because DOSGI not duplicate service properties. I think what I want to do is not possible with DOSGI and cellar Le 27.03.2014 15:28, Natalius a écrit : If in my tracker I see the configuration admins I find my properties, good ! But I not have method to

RE: Karaf Java8

2014-03-27 Thread CLEMENT Jean-Philippe
As a desesperate solution I removed built-in ASM and installed the latest one (5.0.1) and... tada! Everything is just fine. Everything works as expected and I even get no strange logs. JP [@@ THALES GROUP INTERNAL @@] -Message d'origine- De : CLEMENT Jean-Philippe

bundle:refresh

2014-03-27 Thread asookazian2
what is the purpose of the refresh command in Karaf 3.0.x? What effect does it have on the bundle lifecycle? I have a WAB (mega bundle WAR) that I just re-built using mvn. I run 'update xxx'. Do I need to run 'refresh xxx' as well? Typically I update WAB bundle and halt Karaf and restart

Re: Karaf Java8

2014-03-27 Thread Jean-Baptiste Onofré
Hi JP, it works straight forward for me using ASM 5.0.1. I will rebase my local branch and merge on master. Regards JB On 03/27/2014 04:45 PM, CLEMENT Jean-Philippe wrote: Hi JB, Some modules which have been compiled with Java 8 fail to start. The problem is I have no clue if it's due to

Re: Karaf Java8

2014-03-27 Thread Jean-Baptiste Onofré
Hi Charlie, Yes, 3.0.1 and 4.0.0 will have Java8 support. Regards JB On 03/27/2014 07:17 PM, Charlie Mordant wrote: Hi JB, JP, Will it be a 3.0.1 dedicated to Java8 support soon? It should be nice for sharp devs ;). Regards, 2014-03-27 19:13 GMT+01:00 Jean-Baptiste Onofré

refresh causes ClassCastException in 3.0.0

2014-03-27 Thread asookazian2
Bundle is currently active. we exec 'refresh xxx' for that bundle and start that bundle. how to handle this as I've read the same class has been loaded by 2 different classloaders and thus the exception... Caused by: java.lang.ClassCastException:

Which OSGi framework is Karaf using?

2014-03-27 Thread asookazian2
exec 'shell:info' to find out e.g. Karaf Karaf version 3.0.0 OSGi Framework org.apache.felix.framework - 4.2.1 -- View this message in context: http://karaf.922171.n3.nabble.com/Which-OSGi-framework-is-Karaf-using-tp4032438.html Sent from the Karaf - User

integration testing with karaf

2014-03-27 Thread ken
Hi, I've been reading and trying to write some integration testing using karaf, looking at http://karaf.apache.org/manual/latest/developers-guide/writing-tests.html seems rather straightforward. However, I am getting java.lang.NoClassDefFoundError:

Re: bundle:refresh

2014-03-27 Thread Freeman Fang
Hi, If a bundle(Let's say bundleA) isn't self-contained, which means other bundles depend on this bundle, then install bundleA won't take effect immediately, you do need refresh bundleA, this will cause all bundles depending on bundleA refresh(re-resolved) also, so that your changes in bundleA

Re: refresh causes ClassCastException in 3.0.0

2014-03-27 Thread Freeman Fang
Hi, The solution here could be 1. simply eliminate multiple versions for com.nextgate.ms.component.adapter.listener.mm.impl.MMNotifyConfigurationImpl from your container or 2. correctly use use directive in OSGi headers so that the dependency chain could be resolved without any ambiguity