hmm,

are you sure these features where installed properly?
Cause I'm seeing this logentry:

 Unable to uninstall Kar feature extended-feature/1.0.0
java.lang.Exception: Feature named 'extended-feature' with version '1.0.0'
is not installed

which makes me think that the feature never's been installed properly.

regards, Achim


2013/10/16 ronfulkerson <[email protected]>

> Hello,
>
> I am packaging artifacts into a KAR using features with embedded features,
> such as:
>
>         <feature name='base-feature' version='${project.version}'
> start-level='80'>
>
> <bundle>mvn:com.company.base/base-feature/${project.version}</bundle>
>         </feature>
>
>         <feature name='extended-feature' version='${project.version}'
> start-level='80'>
>                 <feature
> version='${project.version}'>base-feature</feature>
>
> <bundle>mvn:com.company.extended/extended-feature/1.0.0</bundle>
>         </feature>
>
> While this works great for deployment, if I delete the KAR file I receive
> many warnings that the features could not be uninstalled.  This happens for
> every feature in the KAR (i.e. it does not appear to be a recursive issue
> because even the highest level feature exhibits this problem).  Please see
> the example exception below.
>
> Am I doing something incorrect, or are other people seeing this issue (I am
> using Karaf 2.3.2)?
>
> Thanks,
> Ron
>
>
>
> 2013-10-15 17:09:49,633 | WARN  | che-karaf/deploy | KarArtifactInstaller |
> eployer.kar.KarArtifactInstaller  212 | 24 - org.apache.karaf.deployer.kar
> -
> 2.3.2 | Unable to uninstall Kar feature base-feature/1.0.0
> java.lang.Exception: Feature named 'base-feature' with version '1.0.0' is
> not installed
>         at
>
> org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature(FeaturesServiceImpl.java:972)[26:org.apache.karaf.features.core:2.3.2]
>         at
> Proxy912eb5b0_62a4_42a6_8131_45addf6b8f0c.uninstallFeature(Unknown
> Source)[:]
>         at
>
> org.apache.karaf.deployer.kar.KarArtifactInstaller.uninstallFeatures(KarArtifactInstaller.java:210)[24:org.apache.karaf.deployer.kar:2.3.2]
>         at
>
> org.apache.karaf.deployer.kar.KarArtifactInstaller.uninstall(KarArtifactInstaller.java:327)[24:org.apache.karaf.deployer.kar:2.3.2]
>         at
>
> org.apache.felix.fileinstall.internal.DirectoryWatcher.uninstall(DirectoryWatcher.java:1063)[6:org.apache.felix.fileinstall:3.2.6]
>         at
>
> org.apache.felix.fileinstall.internal.DirectoryWatcher.uninstall(DirectoryWatcher.java:877)[6:org.apache.felix.fileinstall:3.2.6]
>         at
>
> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:481)[6:org.apache.felix.fileinstall:3.2.6]
>         at
>
> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[6:org.apache.felix.fileinstall:3.2.6]
> 2013-10-15 17:09:49,633 | WARN  | che-karaf/deploy | KarArtifactInstaller |
> eployer.kar.KarArtifactInstaller  212 | 24 - org.apache.karaf.deployer.kar
> -
> 2.3.2 | Unable to uninstall Kar feature extended-feature/1.0.0
> java.lang.Exception: Feature named 'extended-feature' with version '1.0.0'
> is not installed
>         at
>
> org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature(FeaturesServiceImpl.java:972)[26:org.apache.karaf.features.core:2.3.2]
>         at
> Proxy912eb5b0_62a4_42a6_8131_45addf6b8f0c.uninstallFeature(Unknown
> Source)[:]
>         at
>
> org.apache.karaf.deployer.kar.KarArtifactInstaller.uninstallFeatures(KarArtifactInstaller.java:210)[24:org.apache.karaf.deployer.kar:2.3.2]
>         at
>
> org.apache.karaf.deployer.kar.KarArtifactInstaller.uninstall(KarArtifactInstaller.java:327)[24:org.apache.karaf.deployer.kar:2.3.2]
>         at
>
> org.apache.felix.fileinstall.internal.DirectoryWatcher.uninstall(DirectoryWatcher.java:1063)[6:org.apache.felix.fileinstall:3.2.6]
>         at
>
> org.apache.felix.fileinstall.internal.DirectoryWatcher.uninstall(DirectoryWatcher.java:877)[6:org.apache.felix.fileinstall:3.2.6]
>         at
>
> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:481)[6:org.apache.felix.fileinstall:3.2.6]
>         at
>
> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[6:org.apache.felix.fileinstall:3.2.6]
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/KAR-file-delete-causes-Exceptions-tp4029957.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to