osgi - Unable to auto-deploy bundle to Karaf -


i developing osgi-based application, deploys karaf container. karaf has auto-deployment feature, whereby copying bundle karaf/deploy directory should automatically deploy bundle container. more not, however, getting errors similar 1 below when copy bundles deploy directory:

org.osgi.framework.bundleexception: bundle symbolic name , version not unique: legacy-services-impl:8.0.0.alpha-sprint9-snapshot     @ org.apache.felix.framework.bundleimpl.createrevision(bundleimpl.java:1225)     @ org.apache.felix.framework.bundleimpl.<init>(bundleimpl.java:95)     @ org.apache.felix.framework.felix.installbundle(felix.java:2979)     @ org.apache.felix.framework.bundlecontextimpl.installbundle(bundlecontextimpl.java:165)     @ org.apache.felix.fileinstall.internal.directorywatcher.installorupdatebundle(directorywatcher.java:1030)[6:org.apache.felix.fileinstall:3.3.11.fuse-71-047]     @ org.apache.felix.fileinstall.internal.directorywatcher.install(directorywatcher.java:944)[6:org.apache.felix.fileinstall:3.3.11.fuse-71-047]     @ org.apache.felix.fileinstall.internal.directorywatcher.install(directorywatcher.java:857)[6:org.apache.felix.fileinstall:3.3.11.fuse-71-047]     @ org.apache.felix.fileinstall.internal.directorywatcher.process(directorywatcher.java:483)[6:org.apache.felix.fileinstall:3.3.11.fuse-71-047]     @ org.apache.felix.fileinstall.internal.directorywatcher.run(directorywatcher.java:291)[6:org.apache.felix.fileinstall:3.3.11.fuse-71-047] 

instead of redeploying deployed bundle, container tells me trying deploy duplicate bundle.

the karaf indeed has bundle deployed, why wouldn't redeploy bundle? causing behavior? how avoid such errors on auto-deploy?

thank you,

michael

i suspect bundle not stop correctly. may reason why karaf thinks still there. have code in activator executed when stopping? perhaps running threads. should make sure stop method of activator works , cleanly closes resources , stops threads of bundle.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -