karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Konkov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4701) Problem installing feature
Date Fri, 23 Dec 2016 11:07:58 GMT

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

Vladimir Konkov commented on KARAF-4701:
----------------------------------------

Same here. Affected all version after 4.0.6. Already installed bundle is installed again if
it included in two different features. 
One example scenario to reproduce (in Karaf console):

feature:repo-add cxf 3.1.5
feature:repo-add camel 2.16.3

feature:install cxf-jaxrs cxf-jaxws camel-spring camel-cxf camel-quartz
(repeat many times)

Most of time logs looks like:

2016-12-21 18:55:30,908 | INFO  | nsole user karaf | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 | The specified feature: 'camel-spring' version '2.16.3'
is already installed
2016-12-21 18:55:30,909 | INFO  | nsole user karaf | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 | The specified feature: 'cxf-jaxrs' version '3.1.5'
is already installed
2016-12-21 18:55:30,910 | INFO  | nsole user karaf | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 | The specified feature: 'camel-cxf' version '2.16.3'
is already installed
2016-12-21 18:55:30,910 | INFO  | nsole user karaf | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 | The specified feature: 'camel-quartz' version '2.16.3'
is already installed
2016-12-21 18:55:30,911 | INFO  | nsole user karaf | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 | The specified feature: 'cxf-jaxws' version '3.1.5'
is already installed
2016-12-21 18:55:30,912 | INFO  | nsole user karaf | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 | Adding features: camel-spring/[2.16.3,2.16.3],
cxf-jaxrs/[3.1.5,3.1.5], camel-cxf/[2.16.3,2.16.3], camel-quartz/[2.16.3,2.16.3], cxf-jaxws/[3.1.5,3.1.5]
2016-12-21 18:55:32,032 | INFO  | pool-8-thread-1  | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 | No deployment change.
2016-12-21 18:55:32,047 | INFO  | pool-8-thread-1  | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8| Done.


But eventually I see this:

2016-12-21 17:16:19,913 | INFO  | nsole user karaf | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 | Adding features: camel-spring/[2.16.3,2.16.3],
cxf-jaxrs/[3.1.5,3.1.5], camel-cxf/[2.16.3,2.16.3], camel-quartz/[2.16.3,2.16.3], cxf-jaxws/[3.1.5,3.1.5]
2016-12-21 17:16:20,647 | INFO  | pool-2-thread-1  | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 | Changes to perform:
2016-12-21 17:16:20,647 | INFO  | pool-2-thread-1  | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 |   Region: root
2016-12-21 17:16:20,647 | INFO  | pool-2-thread-1  | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 |     Bundles to install:
2016-12-21 17:16:20,647 | INFO  | pool-2-thread-1  | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 |       mvn:org.codehaus.woodstox/stax2-api/3.1.4
2016-12-21 17:16:20,649 | INFO  | pool-2-thread-1  | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 | Installing bundles:
2016-12-21 17:16:20,649 | INFO  | pool-2-thread-1  | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 |   mvn:org.codehaus.woodstox/stax2-api/3.1.4
2016-12-21 17:16:20,650 | INFO  | pool-2-thread-1  | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 | Stopping bundles:
2016-12-21 17:16:20,650 | INFO  | pool-2-thread-1  | FeaturesServiceImpl              | 8
- org.apache.karaf.features.core - 4.0.8 |   org.apache.camel.camel-cxf-transport/2.16.3

++ many lines of restarting/refreshing tens of bundles



> Problem installing feature
> --------------------------
>
>                 Key: KARAF-4701
>                 URL: https://issues.apache.org/jira/browse/KARAF-4701
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 4.0.6
>            Reporter: Hannes Bjurek
>
> Sometimes(roughly every 5) time we deploy a feature karaf thinks it needs to refresh
our org.apache.servicemix.bundles.jaxb-impl bundle even though it should not. We have debugged
the Deployer.computeDeployent method and discovered that cause of this problem is that the
jaxb-impl bundle is duplicated in the bundlesPerRegions-map and then it gets duplicated in
the toDeploy list.
> The "first" jaxb-impl gets removed on line 1219 but the "second" one of course is still
there and then it triggers the unexpected event.



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

Mime
View raw message