OSGI embedded classes not resolving

By : sanat
Source: Stackoverflow.com

We are using Day cq. It uses Apache Felix osgi container. In one of our projects we are using Rhino for serverside scripting. Day already comes with Rhino library included as part of org.apache.sling.scripting.javascript - here Rhino library is part of this Sling bundle, not an embedded jar, and it is a bit older version.

We want to use latest version of Rhino library so we added it as part of our bundles libs section, but we are not able to access the latest jar. Rather we still have access to the old version.

How can we override this?

By : sanat


You are going to want an "OSGi version" of the Rhino library. Based on a quick search, I found the following possibilities.

The primary service of the above examples is to provide the OSGi manifest to Felix. Alternately, you can provide your own manifest.

By : IT Gumby

This video can help you solving your question :)
By: admin