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
>> >> >>
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
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
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..
> >> >> >>
> >> >
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
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
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
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.
> >>>
> >>> ---
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]
&
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
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
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
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
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
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
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
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
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
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
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:
>
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
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
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
23 matches
Mail list logo