Yes, you have to explicitly expose packages from the classpath. You
can do that by adding them to the
org.osgi.framework.system.packages.extra property (assuming you are
using Felix 1.4.0).

Make sure you have a look at:
http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html
(its mentioned in there as well :-)

regards,

Karl

On Thu, Dec 4, 2008 at 3:19 PM, Paul <[EMAIL PROTECTED]> wrote:
> Hi felix users,
>
> I'm adding modularity to an existing application with the help of felix.
> I used the "service-based application embedding the framework" approach.
>
> My first bundle need to use classes present in the application classpath, ie.
> not in any bundles. When starting the bundle I get this exception :
>
> org.osgi.framework.BundleException: Unresolved constraint in bundle 1:
> package; (package=net.acme.utils)
>
> Do I have to specify which packages in my main classpath are exposed to
> bundles ?
>
> There must be something I didn't understood well. Any help appreciated.
>
> Best regards
>
> Paul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Karl Pauls
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to