Many thanks Bertrand.

Some progress:

Did you install the required SCR runtime bundles? You need at least
the org.apache.felix.scr (or Equinox equivalent) bundle

I thought org.eclipse.equinox.dr (Declarative Services) could be the one, but adding it resulted in no effect.

So I added these bundles to the platform (as per the lite launcher list.xml):

- org.apache.felix:org.osgi.core:1.2.0
- org.apache.felix:org.apache.felix.scr:1.4.0
- org.apache.felix:org.apache.felix.configadmin:1.2.4
- org.apache.felix:org.apache.felix.metatype:1.0.4
- org.osgi:org.osgi.compendium:4.1.0

and their dependencies (resolved automatically by Eclipse).

This time a few components did start, but only the ones that did not have a configuration (i.e. no variables annotated with @Property). The others won't start.

The first time I tried it out I was getting, for every component with a configuration, a ClassCastException: "org.apache.felix.cm.impl.ConfigurationAdminImpl cannot be cast to org.osgi.service.cm.ConfigurationAdmin" was thrown.

Then I remade an OSGi config from scratch and the exception was gone. Still, no components with properties were activated.

I thought org.apache.felix.configadmin was the bundle that would provide this feature, but maybe I'm wrong?

Regards,
Alessandro

Reply via email to