[ 
https://issues.apache.org/jira/browse/KARAF-4529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15764048#comment-15764048
 ] 

Oliver Schweitzer commented on KARAF-4529:
------------------------------------------

When trying to update from Karaf 4.0.4 to 4.0.8, we encounter a similar 
phenomenon:

We have camel routes in a bundle, (programmatic via Fluid API, not via 
Blueprint routes), and when trying to install the feature containing the routes 
we get the exception printed below.

And we get the exact same behaviour as the issue reporter: When we install all 
the dependencies in the feature manually in the console (via install -s) and 
the bundle itself the same way, the deployment works.

{quote}
2016-12-20 12:37:49,235 | INFO  | nsole user karaf | FeaturesServiceImpl        
      | 8 - org.apache.karaf.features.core - 4.0.8 | Adding features: 
my-feature-routing/[1.1.30.SNAPSHOT,1.1.30.SNAPSHOT]
2016-12-20 12:44:50,020 | ERROR | nsole user karaf | ShellUtil                  
      | 142 - org.apache.karaf.shell.core - 4.0.8 | Exception caught while 
executing command
org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing 
requirement [root] osgi.identity; osgi.identity=my-feature-routing; 
type=karaf.feature; version="[1.1.30.SNAPSHOT,1.1.30.SNAPSHOT]"; 
filter:="(&(osgi.identity=my-feature-routing)(type=karaf.feature)(version>=1.1.30.SNAPSHOT)(version<=1.1.30.SNAPSHOT))"
 [caused by: Unable to resolve my-feature-routing/1.1.30.SNAPSHOT: missing 
requirement [my-feature-routing/1.1.30.SNAPSHOT] osgi.identity; 
osgi.identity=my.package.name.io.routes; type=osgi.bundle; 
version="[1.1.30.201612200856,1.1.30.201612200856]"; resolution:=mandatory 
[caused by: Unable to resolve my.package.name.io.routes/1.1.30.201612200856: 
missing requirement [my.package.name.io.routes/1.1.30.201612200856] 
osgi.service; 
filter:="(objectClass=my.package.name.api.routes.RouteContextBuilder)"; 
effective:=active]]
        at 
org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)[8:org.apache.karaf.features.core:4.0.8]
        at 
org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:389)[8:org.apache.karaf.features.core:4.0.8]
        at 
org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375)[8:org.apache.karaf.features.core:4.0.8]
        at 
org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:347)[8:org.apache.karaf.features.core:4.0.8]
        at 
org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)[8:org.apache.karaf.features.core:4.0.8]
        at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)[8:org.apache.karaf.features.core:4.0.8]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)[8:org.apache.karaf.features.core:4.0.8]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)[8:org.apache.karaf.features.core:4.0.8]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_92]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_92]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_92]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_92]
{quote}

> deployment of feature containing bundles with camel blueprint routes fail
> -------------------------------------------------------------------------
>
>                 Key: KARAF-4529
>                 URL: https://issues.apache.org/jira/browse/KARAF-4529
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 4.0.5
>         Environment: Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, 
> mixed mode)
> Linux dbserver-p2 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 
> (2015-11-09) x86_64 GNU/Linux
>            Reporter: Alexander Sahler
>            Priority: Blocker
>
> When using the feature mechanism to deploy bundles containing blueprint files 
> with camel routes, the deployment fails with exception
> {code}
> 2016-05-13 13:21:05,172 | ERROR | nsole user karaf | ShellUtil                
>         | 107 - org.apache.karaf.shell.core
> - 4.0.5 | Exception caught while executing command
> org.osgi.service.resolver.ResolutionException: Unable to resolve root: 
> missing requirement [root] osgi.identity; osgi.iden
> tity=pmc-impl; type=karaf.feature; version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]"; 
> filter:="(&(osgi.identity=pmc-impl)(type=kar
> af.feature)(version>=1.4.0.SNAPSHOT)(version<=1.4.0.SNAPSHOT))" [caused by: 
> Unable to resolve pmc-impl/1.4.0.SNAPSHOT: mis
> sing requirement [pmc-impl/1.4.0.SNAPSHOT] osgi.identity; 
> osgi.identity=pmc-impl; type=osgi.bundle; version="[1.4.0.SNAPSH
> OT,1.4.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve 
> pmc-impl/1.4.0.SNAPSHOT: missing requirement [pmc
> -impl/1.4.0.SNAPSHOT] osgi.service; effective:=active; 
> filter:="(&(objectClass=org.apache.aries.blueprint.NamespaceHandler
> )(osgi.service.blueprint.namespace=http://camel.apache.org/schema/blueprint))"]]
>         at 
> org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)[org.apache.felix.framework-5.4.0
> .jar:]
>         at 
> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:235)[org.apache.felix.framework-5.4.0.jar:]
>         at 
> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:158)[org.apache.felix.framework-5.4.0.jar:]
>         at 
> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)[9:org.apache.ka
> raf.features.core:4.0.5]
>         at 
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)[9:org.apache.karaf.features.core:
> 4.0.5]
>         at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1152)[9:org
> .apache.karaf.features.core:4.0.5]
>         at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1048)[9:org.apac
> he.karaf.features.core:4.0.5]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_66]
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_66]
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_66]
>         at java.lang.Thread.run(Thread.java:745)[:1.8.0_66]
> {code}
> However, when I install all the dependencies in the feature manually in the 
> console (via install -s) and the bundle itself the same way, the deployment 
> works perfectly!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to