How about posting the projects so I can try them?


--- On Tue, 6/9/09, Markus Michel <[email protected]> wrote:

> From: Markus Michel <[email protected]>
> Subject: Embedded Felix: Using a service provided by the host from a bundle
> To: [email protected]
> Date: Tuesday, June 9, 2009, 11:52 AM
> Hi there,
> 
> after reading the wiki entry (
> http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-hostservices)
> I tried to integrate the presented example
> into my existing code. Within my Eclipse workspace I have
> the following
> projects:
> 
> Host Project, which uses the functionality of the felix.jar
> to create an
> OSGi instance and implements the Lookup service
> 
> Equinox Hello World bundle which tries to use the Lookup
> service (To get
> access to the service implementation I added the Host
> Project as an required
> project to the build path)
> 
> If I try to export the bundle to a jar file I'm getting the
> following errors
> within a zipped log file:
> 
> # 09.06.09 18:34:17 MESZ
> # Eclipse Java Compiler 0.894_R34x, 3.4.2 release,
> Copyright IBM Corp 2000,
> 2008. All rights reserved.
> ----------
> 1. ERROR in
> /home/markus/master/michel/masterthesis/eclipseWorkspace/TestBundle/src/bla/Activator.java
> (at line 13)
>     ServiceReference serviceReference =
> context.getServiceReference(CanEmulator.Lookup.class.getName());
> 
> ^^^^^^^^^^^
> CanEmulator cannot be resolved to a type
> ----------
> 2. ERROR in
> /home/markus/master/michel/masterthesis/eclipseWorkspace/TestBundle/src/bla/Activator.java
> (at line 17)
>     CanEmulator.Lookup lookup =
> (CanEmulator.Lookup)
> context.getService(serviceReference);
>     ^^^^^^^^^^^
> CanEmulator cannot be resolved to a type
> ----------
> 3. ERROR in
> /home/markus/master/michel/masterthesis/eclipseWorkspace/TestBundle/src/bla/Activator.java
> (at line 17)
>     CanEmulator.Lookup lookup =
> (CanEmulator.Lookup)
> context.getService(serviceReference);
>                
>              
>    ^^^^^^^^^^^
> CanEmulator cannot be resolved
> ----------
> 3 problems (3 errors)
> 
> It seems like the bundle doesn't find the referenced
> project. Does anybody
> has an idea how to solve my problem? Do I have to add
> something to the
> mainfest file? (I tried to add my project to the bundle
> import path, but I
> couldn't find it in the list, because the host project
> isn't a plugin
> project)
> 
> BR,
> 
> Markus
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to