Hi Christian,

feature:uninstall uninstalls only the feature itself, not the feature dependencies.

It means that your camel-cxf feature is really uninstall, but not the CXF feature (in dependency of camel-cxf), as this feature could be installed by others features or bundles.

We plan to add a -r ("recursive") to uninstall the feature and all depency features.

Regards
JB

On 03/04/2012 12:12 PM, Christian Müller wrote:
The documentation of feature:uninstall console command says: "Uninstalls
a feature with the specified name and version."

I tried the following:
On a fresh Apache Karaf 2.2.5 instance I added the Apache Camel features
file and checked, that no bundle unless the system bundles are installed

christian-muellers-macbook-pro:bin cmueller$ ./karaf
         __ __                  ____
        / //_/____ __________ _/ __/
       / ,<  / __ `/ ___/ __ `/ /_
      / /| |/ /_/ / /  / /_/ / __/
     /_/ |_|\__,_/_/   \__,_/_/

   Apache Karaf (2.2.5)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown Karaf.

karaf@root> feature:add-url
mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features
karaf@root> list
START LEVEL 100 , List Threshold: 50
    ID   State         Blueprint      Level  Name


Than I installed the camel-cxf feature and checked that each bundle
could be installed successfully:

karaf@root> feature:install camel-cxf
karaf@root> list
START LEVEL 100 , List Threshold: 50
    ID   State         Blueprint      Spring    Level  Name
[  69] [Active     ] [            ] [       ] [   50] camel-core (2.9.0)
[  70] [Active     ] [Created     ] [       ] [   50]
camel-karaf-commands (2.9.0)
[  71] [Active     ] [            ] [       ] [   50]
geronimo-jta_1.1_spec (1.1.1)
[  72] [Active     ] [            ] [       ] [   50] camel-spring (2.9.0)
[ 100] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Extender - WAR (1.0.7)
[ 101] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Extender - Whiteboard (1.0.7)
[ 102] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
FileInstall Deployer (1.0.7)
[ 103] [Active     ] [            ] [       ] [   60] OPS4J Pax Url -
war (1.2.8)
[ 108] [Active     ] [            ] [       ] [   60] Joda-Time (1.6.2)
[ 109] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: opensaml (2.5.1.1)
[ 110] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: xmlsec (1.4.5.1)
[ 111] [Active     ] [            ] [       ] [   60] WSS4J (1.6.4)
[ 112] [Active     ] [            ] [       ] [   60] Commons Codec (1.4)
[ 113] [Active     ] [            ] [       ] [   60] Axiom Impl (1.2.10)
[ 114] [Active     ] [            ] [       ] [   60] Axiom API (1.2.10)
[ 115] [Active     ] [            ] [       ] [   60] Abdera Core (1.1.2)
[ 116] [Active     ] [            ] [       ] [   60] Abdera Extensions
- Main (1.1.2)
[ 117] [Active     ] [            ] [       ] [   60] I18N Libraries (1.1.2)
[ 118] [Active     ] [            ] [       ] [   60] Abdera Parser (1.1.2)
[ 120] [Active     ] [            ] [       ] [   60] Commons Lang (2.6)
[ 121] [Active     ] [            ] [       ] [   60] Commons
Collections (3.2.1)
[ 123] [Active     ] [            ] [       ] [   60] Apache Neethi (3.0.1)
[ 124] [Active     ] [            ] [       ] [   60] XmlSchema Core (2.0.1)
[ 125] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: wsdl4j (1.6.2.3)
[ 126] [Active     ] [            ] [       ] [   60] jettison (1.3)
[ 127] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: xmlbeans (2.5.0.2)
[ 128] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: js (1.0.0.7R2_1)
[ 129] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: xmlresolver (1.2.0.3)
[ 130] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: xercesImpl (2.9.1.4)
[ 131] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: bcel (5.2.0.3)
[ 132] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: xalan (2.7.1.3)
[ 133] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: oro (2.0.8.4)
[ 134] [Active     ] [            ] [       ] [   60] Apache Velocity (1.7)
[ 135] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: jdom (1.1.0.3)
[ 136] [Active     ] [Created     ] [       ] [   60] Apache CXF Bundle
Jar (2.5.1)
[ 137] [Active     ] [Created     ] [       ] [   60] Apache CXF Karaf
Commands (2.5.1)
[ 138] [Active     ] [            ] [       ] [   50]
camel-cxf-transport (2.9.0)
[ 139] [Active     ] [Created     ] [       ] [   50] camel-cxf (2.9.0)


Afterwards I uninstalled this feature and checked that all bundles are
also uninstalled:

karaf@root> feature:uninstall camel-cxf
karaf@root> list
START LEVEL 100 , List Threshold: 50
    ID   State         Blueprint      Spring    Level  Name
[  69] [Active     ] [            ] [       ] [   50] camel-core (2.9.0)
[  70] [Active     ] [Created     ] [       ] [   50]
camel-karaf-commands (2.9.0)
[  71] [Active     ] [            ] [       ] [   50]
geronimo-jta_1.1_spec (1.1.1)
[  72] [Active     ] [            ] [       ] [   50] camel-spring (2.9.0)
[ 100] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Extender - WAR (1.0.7)
[ 101] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Extender - Whiteboard (1.0.7)
[ 102] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
FileInstall Deployer (1.0.7)
[ 103] [Active     ] [            ] [       ] [   60] OPS4J Pax Url -
war (1.2.8)
[ 108] [Active     ] [            ] [       ] [   60] Joda-Time (1.6.2)
[ 109] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: opensaml (2.5.1.1)
[ 110] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: xmlsec (1.4.5.1)
[ 111] [Active     ] [            ] [       ] [   60] WSS4J (1.6.4)
[ 112] [Active     ] [            ] [       ] [   60] Commons Codec (1.4)
[ 113] [Active     ] [            ] [       ] [   60] Axiom Impl (1.2.10)
[ 114] [Active     ] [            ] [       ] [   60] Axiom API (1.2.10)
[ 115] [Active     ] [            ] [       ] [   60] Abdera Core (1.1.2)
[ 116] [Active     ] [            ] [       ] [   60] Abdera Extensions
- Main (1.1.2)
[ 117] [Active     ] [            ] [       ] [   60] I18N Libraries (1.1.2)
[ 118] [Active     ] [            ] [       ] [   60] Abdera Parser (1.1.2)
[ 120] [Active     ] [            ] [       ] [   60] Commons Lang (2.6)
[ 121] [Active     ] [            ] [       ] [   60] Commons
Collections (3.2.1)
[ 123] [Active     ] [            ] [       ] [   60] Apache Neethi (3.0.1)
[ 124] [Active     ] [            ] [       ] [   60] XmlSchema Core (2.0.1)
[ 125] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: wsdl4j (1.6.2.3)
[ 126] [Active     ] [            ] [       ] [   60] jettison (1.3)
[ 127] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: xmlbeans (2.5.0.2)
[ 128] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: js (1.0.0.7R2_1)
[ 129] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: xmlresolver (1.2.0.3)
[ 130] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: xercesImpl (2.9.1.4)
[ 131] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: bcel (5.2.0.3)
[ 132] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: xalan (2.7.1.3)
[ 133] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: oro (2.0.8.4)
[ 134] [Active     ] [            ] [       ] [   60] Apache Velocity (1.7)
[ 135] [Active     ] [            ] [       ] [   60] Apache ServiceMix
:: Bundles :: jdom (1.1.0.3)
[ 136] [Active     ] [Created     ] [       ] [   60] Apache CXF Bundle
Jar (2.5.1)
[ 137] [Active     ] [Created     ] [       ] [   60] Apache CXF Karaf
Commands (2.5.1)

But they are still installed.
If this is the expected behavior, could you please update the command
description and make this more clear (which bundles will be uninstalled
and which bundle not). I had a different expectation...

Thanks in advance,
Christian

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to