Hi Tom,
you don't have to install compendium bundle: it comes with feature when
required.
Moreover, you should use cmpn 6.0.0 (and not compendium 5.0.0).
Regards
JB
On 09/07/2016 02:37 PM, tom leung wrote:
After installing the following bundle
install mvn:org.osgi/org.osgi.compendium/5.0.0
Every time I install or uninstall a feature, Karaf seems to restart
something, and show the Karaf logo again as below:
karaf@root()>
karaf@root()>
karaf@root()> install mvn:org.osgi/org.osgi.compendium/5.0.0
Bundle ID: 52
karaf@root()> feature:install spring/3.1.4.RELEASE
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (4.0.6)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
karaf@root()> feature:uninstall spring/3.1.4.RELEASE
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (4.0.6)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
Sometimes, this 'restart' symptom makes some bundles for a installed
feature stay in status 'Installed' as below:
50 | Active | 20 | 5.0.4 | ASM all classes with debug info
51 | Active | 5 | 2.4.7 | OPS4J Pax Url - wrap:
61 | Active | 30 | 1.0.0.6 | Apache ServiceMix :: Bundles ::
aopallian
62 | Installed | 30 | 3.1.4.RELEASE | Spring AOP
63 | Active | 30 | 3.1.4.RELEASE | Spring ASM
64 | Active | 30 | 3.1.4.RELEASE | Spring Beans
65 | Active | 30 | 3.1.4.RELEASE | Spring Context
66 | Active | 30 | 3.1.4.RELEASE | Spring Context Support
67 | Installed | 30 | 3.1.4.RELEASE | Spring Core
68 | Installed | 30 | 3.1.4.RELEASE | Spring Expression Language
I need to start the bundles manually.
After uninstalling the compendium bundle, installing any feature won't
create the symptom.
karaf@root()> uninstall mvn:org.osgi/org.osgi.compendium/5.0.0
karaf@root()>
karaf@root()> feature:install spring/3.1.4.RELEASE
karaf@root()>
Any way to solve this symptom?
Best Rgds,
Tom
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com