Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

Deploy a bundle without restarting the controller

One of the good things about OSGi is that it allows to update and deploy bundles without restarting Karaf.

During development I would like to update the bundle without having to restart Karaf.

I tried to deploy several updated bundles by placing them in the deploy folder. The problem is the new code is never executed if I do not reboot Karaf.

The error is:

Failed to remove bundle org.opendaylight.hello.impl_1.0.0.SNAPSHOT [195]
java.lang.IllegalStateException: Error while copying old configuration from ModuleInternalInfo [name=ModuleIdentifier{factoryName='hello', instanceName='hello-default'}] to org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hello.impl.rev141210.HelloModuleFactory@50e77f8f

After a restart everything is fine.

Is there something I am missing? Are there java methods I have to change to facilitate the hot-installation?

Context: Beryllium