Hi,

Am 29.06.2012 um 16:03 schrieb sam ”:

> Hey,
> 
> I installed a bundle using Web Console  (inputstream:core-1.0-0.jar).
> I uninstalled the bundle by clicking Uninstall button in Web Console. I did
> not click Stop button.
> 
> Then, I put the same bundle in the repository  under
> /apps/osgi/install/core-1.0-0.jar

Why would you uninstall the bundle first ? I would assume this is just the same 
bundle deployed again. So OSGi Install would just do nothing at this point in 
time.

> 
> When I try to configure some of the components, I get this in the log:
> 29.06.2012 09:58:01.621 *ERROR* [CM Event Dispatcher (Fire
> ConfigurationEvent: pid=com.cms.HostConfig)] org.apache.felix.scr Cannot
> use configuration pid=com.cms.HostConfig for bundle
> jcrinstall:/apps/osgi/install/core-1.0-0.jar because it belongs to bundle
> inputstream:core-1.0-0.jar

You may go to the web console's configuration page, open the configuration and 
click the unbind button (followed by the save button). This should first unbind 
the configuration from the old bundle and then (upon save) provide the 
configuration to the new bundle.

> 
> 
> This error persists even when I restart the instance.
> 
> Why would configurations bound when I uninstalled the bundle?

Because they have probably been bound by DS (Felix SCR) to the bundle as static 
binding.

> How can I properly uninstall bundles installed through Web Console?

Uninstallation was good like this. The framework will stop the bundle first if 
needed upon uninstallation.


> How can I cleanly unbound all configurations and rebind them to bundles
> installed through jcrinstall?

See above.

The premier solution is to always update bundles and not uninstall-install them 
to update. The helper solution is to use the configuration unbind feature of 
the web console.

Regards
Felix


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

Reply via email to