Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Eclipse + knopflerfish
Eclipse + knopflerfish [message #83354] Thu, 15 February 2007 14:42 Go to next message
Eclipse UserFriend
Originally posted by: grnemo.gmail.com

Thx to the guys from here <er08c6$f6o$1@utils.eclipse.org> for my
redirection here.


http://i23.photobucket.com/albums/b352/grnemo/Screenshot1.jp g
http://i23.photobucket.com/albums/b352/grnemo/Screenshot2.jp g

Hello to all,
I am a new developer of java & OSGi framework.
After tutorials, java book etc etc I managed to write some code. A
bundle which acts as a primitive server. I connect to a socket and
whatever i write to the console it is logged to the log bundle
(practicing also to the reusing bundles model)
The bundle runs perfectly with the knopflerfish platform but I want to
run it inside eclipse. I have a setup of the knopflerfish (plugin) I
select the bundles I use etc etc but it doesn't find the log
service....I don't know what else to do.
I have included 2 screenshots of me working on eclipse and marked my
trouble area. If you have anything in mind I would be grateful.

Thank you in advance,



Aggelos Mpimpoudis,
Undergraduate student @ National University of Greece


PS: from the little research i did until i have reached this newsgroup I
found that I can eliminate this null problem by using service listeners
but the context var is now my problem.
void start (BundleContext context)
....
ServiceListener sL = new ServiceListener() {
public void serviceChanged (ServiceEvent event){
ServiceReference sr = event.getServiceReference();
switch (event.getType()){
case ServiceEvent.REGISTERED:
{
logService=(LogService)context.getService(logSref);
}
break;
default:
break;
}
}

};
Re: Eclipse + knopflerfish [message #83554 is a reply to message #83354] Tue, 20 February 2007 11:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: grnemo.gmail.com

Aggelos Mpimpoudis wrote:
> Thx to the guys from here <er08c6$f6o$1@utils.eclipse.org> for my
> redirection here.
>
>
> http://i23.photobucket.com/albums/b352/grnemo/Screenshot1.jp g
> http://i23.photobucket.com/albums/b352/grnemo/Screenshot2.jp g
>
> Hello to all,
> I am a new developer of java & OSGi framework.
> After tutorials, java book etc etc I managed to write some code. A
> bundle which acts as a primitive server. I connect to a socket and
> whatever i write to the console it is logged to the log bundle
> (practicing also to the reusing bundles model)
> The bundle runs perfectly with the knopflerfish platform but I want to
> run it inside eclipse. I have a setup of the knopflerfish (plugin) I
> select the bundles I use etc etc but it doesn't find the log
> service....I don't know what else to do.
> I have included 2 screenshots of me working on eclipse and marked my
> trouble area. If you have anything in mind I would be grateful.
>
> Thank you in advance,
>
>
>
> Aggelos Mpimpoudis,
> Undergraduate student @ National University of Greece
>
>
> PS: from the little research i did until i have reached this newsgroup I
> found that I can eliminate this null problem by using service listeners
> but the context var is now my problem.
> void start (BundleContext context)
> ...
> ServiceListener sL = new ServiceListener() {
> public void serviceChanged (ServiceEvent event){
> ServiceReference sr = event.getServiceReference();
> switch (event.getType()){
> case ServiceEvent.REGISTERED:
> {
> logService=(LogService)context.getService(logSref);
> }
> break;
> default:
> break;
> }
> }
>
> };

Any help??
Re: Eclipse + knopflerfish [message #83596 is a reply to message #83554] Thu, 22 February 2007 14:27 Go to previous message
Eclipse UserFriend
Originally posted by: grnemo.gmail.com

Grrrrr I have managed to eliminate this error with the context var but
now i confront something veeeery weird...It doesnt seem to intergrate
with the whole framework. There is no log service in there for christs
sk. I start the appropriate bundles but still it doesn't find the log
service which needs its reference...GRrrrrrrrrrrrrrrrrrrrrrr
And the only documentation is there an html page about services.
grrrr

Aggelos
Previous Topic:Equinox documents
Next Topic:Eq Server / Jetty Problem / NoClassDef found
Goto Forum:
  


Current Time: Fri Apr 19 09:21:13 GMT 2024

Powered by FUDForum. Page generated in 0.02093 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top