Re: Problems with Blueprint services

2015-05-20 Thread nino martinez wael
easiest way to go. >> >> >> > >> >> >> > On Mon, May 18, 2015 at 7:27 AM, nino martinez wael >> >> >> > wrote: >> >> >> >> >> >> >> >> I Will try to manually do it.. Currently it runs in an pax exam >> >> >>

Re: Problems with Blueprint services

2015-05-19 Thread James Carman
tting the Maven bundle plugin do all > >>>>>> this > >>>>>> for > >>>>>> you is the easiest way to go. > >>>>>> > >>>>>> On Mon, May 18, 2015 at 7:27 AM, nino martinez wael > >>>>>> wrote: > >&g

Re: Problems with Blueprint services

2015-05-19 Thread Jean-Baptiste Onofré
consumers. This was happening with Karaf 3.0.0. -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Monday, May 18, 2015 6:48 PM To: user@karaf.apache.org Subject: Re: Problems with Blueprint services Yes that is what I think i am doing.. If it helps I ca

Re: Problems with Blueprint services

2015-05-19 Thread James Carman
Mon, May 18, 2015 at 7:27 AM, nino martinez wael > >> >> > wrote: > >> >> >> > >> >> >> I Will try to manually do it.. Currently it runs in an pax exam > >> >> >> test.. > >> >> >> > >> >

Re: Problems with Blueprint services

2015-05-19 Thread nino martinez wael
try to manually do it.. Currently it runs in an pax exam >> >> >> test.. >> >> >> >> >> >> On May 18, 2015 3:29 PM, wrote: >> >> >>> >> >> >>> Faced a similar ClassCastException some time back. Not sure

Re: Problems with Blueprint services

2015-05-19 Thread James Carman
sense but just stating it here for your information. I > had > >> >>> the > >> >>> service interfaces in one bundle (A), implementations in another > >> >>> bundle (B) > >> >>> and a number of consumers. Noticed the C

Re: Problems with Blueprint services

2015-05-19 Thread nino martinez wael
other >> >>> bundle (B) >> >>> and a number of consumers. Noticed the ClassCastException a few times >> >>> if I >> >>> issue a start command to A while starting B and consumers. This was >> >>> happening with Karaf 3.0.0. >> >&g

Re: Problems with Blueprint services

2015-05-19 Thread James Carman
other > bundle (B) > >>> and a number of consumers. Noticed the ClassCastException a few times > if I > >>> issue a start command to A while starting B and consumers. This was > >>> happening with Karaf 3.0.0. > >>> > >>> ---

Re: Problems with Blueprint services

2015-05-18 Thread nino martinez wael
ers. Noticed the ClassCastException a few times if I >>> issue a start command to A while starting B and consumers. This was >>> happening with Karaf 3.0.0. >>> >>> -Original Message- >>> From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] &

Re: Problems with Blueprint services

2015-05-18 Thread Kevin Schmidt
m] >> Sent: Monday, May 18, 2015 6:48 PM >> To: user@karaf.apache.org >> Subject: Re: Problems with Blueprint services >> >> Yes that is what I think i am doing.. If it helps I can clone my git to >> somewhere reachable? IT is a very basic example project just demonstrating

RE: Problems with Blueprint services

2015-05-18 Thread nino martinez wael
ael [mailto:nino.martinez.w...@gmail.com] > Sent: Monday, May 18, 2015 6:48 PM > To: user@karaf.apache.org > Subject: Re: Problems with Blueprint services > > Yes that is what I think i am doing.. If it helps I can clone my git to > somewhere reachable? IT is a very basic example project

RE: Problems with Blueprint services

2015-05-18 Thread vinuraj.maroli
I issue a start command to A while starting B and consumers. This was happening with Karaf 3.0.0. -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Monday, May 18, 2015 6:48 PM To: user@karaf.apache.org Subject: Re: Problems with Blueprint services

Re: Problems with Blueprint services

2015-05-18 Thread nino martinez wael
Yes that is what I think i am doing.. If it helps I can clone my git to somewhere reachable? IT is a very basic example project just demonstrating a cxf rest front with 2 backend services with ranking. On Mon, May 18, 2015 at 3:11 PM, wrote: > You want to export the interface from the API bundle

Re: Problems with Blueprint services

2015-05-18 Thread James Carman
On Mon, May 18, 2015 at 9:11 AM wrote: > You want to export the interface from the API bundle, import it > into the service bundle, let BP and the Maven plugin take care of exports > > +1, definitely use the maven-bundle-plugin to manage your MANIFEST. Most of the time it "just works" without an

Re: Problems with Blueprint services

2015-05-18 Thread nino martinez wael
I just tried, setting the member-type to service-object this gives me the same result. Reason why am doing the whole blueprint are to avoid knowing about servicereferences. On Mon, May 18, 2015 at 2:34 PM, Charlie Mordant wrote: > Hi, > > Can you try to change your setter argument to a ServiceRef

Re: Problems with Blueprint services

2015-05-18 Thread seijoed
You want to export the interface from the API bundle, import it into the service bundle, let BP and the Maven plugin take care of exports On Mon, May 18, 2015 at 7:09 AM, nino martinez wael wrote: > I did use * exports initially but did change it. > To > com.netdesign.osgi.examples.rest.backen

Re: Problems with Blueprint services

2015-05-18 Thread nino martinez wael
I did use * exports initially but did change it. To com.netdesign.osgi.examples.rest.backendb.* and commented out the export package part. On Mon, May 18, 2015 at 2:55 PM, wrote: > I’m guessing you are using * exports and the API and Impl bundle export the > same interface. > > > > On Mon, Ma

Re: Problems with Blueprint services

2015-05-18 Thread seijoed
I’m guessing you are using * exports and the API and Impl bundle export the same interface. On Mon, May 18, 2015 at 3:09 AM, nino martinez wael wrote: > Setter is correct: > https://paste.apache.org/e5ld > And BackendBImplement does implement the interface > https://paste.apache.org/4pOv > Here

Re: Problems with Blueprint services

2015-05-18 Thread Charlie Mordant
Hi, Can you try to change your setter argument to a ServiceReference? Or setting the 'member-type="service-object"' attribute in your ? Here are some sources that can help: http://aries.apache.org/modules/blueprint.html and http://www.ibm.com/developerworks/library/os-osgiblueprint/ Regards, 201

Re: Problems with Blueprint services

2015-05-18 Thread nino martinez wael
So Im still stumbling a bit around this, and not sure what todo... On Mon, May 18, 2015 at 11:09 AM, nino martinez wael wrote: > Setter is correct: > > https://paste.apache.org/e5ld > > And BackendBImplement does implement the interface > > https://paste.apache.org/4pOv > > Heres the interface: >

Re: Problems with Blueprint services

2015-05-18 Thread nino martinez wael
Setter is correct: https://paste.apache.org/e5ld And BackendBImplement does implement the interface https://paste.apache.org/4pOv Heres the interface: package com.netdesign.osgi.examples.rest.domain; /** * Created by nmw on 14-05-2015. */ public interface MessageProvider { String getMe

Re: Problems with Blueprint services

2015-05-18 Thread Jean-Baptiste Onofré
Hi, Check if the setter has the correct type. Check also if the BackendBImplement implements MessageProvider. Regards JB On 05/18/2015 09:40 AM, nino martinez wael wrote: Hi im having a little difficulty getting my services to get "injected" via a blueprint, the service are injected but when

Problems with Blueprint services

2015-05-18 Thread nino martinez wael
Hi im having a little difficulty getting my services to get "injected" via a blueprint, the service are injected but when trying to use it, it fails with this exception: Proxyac192a6f_60ad_44a3_8470_75b9a9054462 cannot be cast to com.netdesign.osgi.examples.rest.domain.MessageProvider java.lang.Cl