[
https://issues.apache.org/jira/browse/KARAF-6732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17119216#comment-17119216
]
Xilai Dai commented on KARAF-6732:
----------------------------------
yes, we can remove the "jetty" feature from the "cxf-http-jetty" feature as a
workaround.
But there is something definitely changed in Karaf feature service between
4.1.x and 4.2.0. and has to be fixed on Karaf side, as you can't stop the user
install the "jetty" feature from his owner feature xml or other 3rd party
feature xml.
> Unexpected bundles refreshed behavior from the Deployer of Feature service
> --------------------------------------------------------------------------
>
> Key: KARAF-6732
> URL: https://issues.apache.org/jira/browse/KARAF-6732
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.4, 4.2.8
> Environment: Java 8, Java 11
> Reporter: Xilai Dai
> Assignee: Jean-Baptiste Onofré
> Priority: Critical
> Fix For: 4.3.0, 4.2.9
>
>
> Unexpected bundles refreshed behavior comes from karaf 4.2.x.
> For example:
> feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.23.1/xml/features
> feature:install camel-cxf
> When try to install the "camel-cxf" feature the second time or one more time,
> many of the installed bundled got refreshed
> {code:java}
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 | Refreshing bundles:
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.camel.camel-cxf/2.23.1 (Wired to org.apache.cxf.cxf-core/3.2.7
> which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.camel.camel-cxf-transport/2.23.1 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-core/3.2.7 (Wired to
> org.apache.cxf.cxf-rt-transports-http-jetty/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-bindings-soap/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-bindings-xml/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-databinding-jaxb/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-features-logging/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-frontend-jaxrs/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-frontend-jaxws/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-frontend-simple/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-management/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-rs-client/3.2.7 (Wired to org.apache.cxf.cxf-core/3.2.7
> which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-rs-extension-providers/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-rs-extension-search/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-rs-json-basic/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-rs-service-description/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,909 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-transports-http/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-transports-http-jetty/3.2.7 (Should be wired to:
> org.eclipse.jetty.http/9.4.22.v20191022 (through
> [org.apache.cxf.cxf-rt-transports-http-jetty/3.2.7] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=org.eclipse.jetty.http)(version>=9.2.0)(!(version>=10.0.0)))"))
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.cxf-rt-wsdl/3.2.7 (Wired to org.apache.cxf.cxf-core/3.2.7
> which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.apache.cxf.karaf.cxf-karaf-commands/3.2.7 (Wired to
> org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.client/9.4.22.v20191022 (Should be wired to:
> org.eclipse.jetty.http/9.4.22.v20191022 (through
> [org.eclipse.jetty.client/9.4.22.v20191022] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=org.eclipse.jetty.http)(version>=9.4.22)(!(version>=10.0.0)))"))
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.deploy/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.server/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.jaas/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.jndi/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.server/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.plus/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.jndi/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.proxy/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.client/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.rewrite/9.4.22.v20191022 (Should be wired to:
> org.eclipse.jetty.http/9.4.22.v20191022 (through
> [org.eclipse.jetty.rewrite/9.4.22.v20191022] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=org.eclipse.jetty.http)(version>=9.4.22)(!(version>=10.0.0)))"))
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.security/9.4.22.v20191022 (Should be wired to:
> org.eclipse.jetty.http/9.4.22.v20191022 (through
> [org.eclipse.jetty.security/9.4.22.v20191022] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=org.eclipse.jetty.http)(version>=9.4.22)(!(version>=10.0.0)))"))
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.security.jaspi/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.server/9.4.22.v20191022 (Should be wired to:
> org.eclipse.jetty.http/9.4.22.v20191022 (through
> [org.eclipse.jetty.server/9.4.22.v20191022] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=org.eclipse.jetty.http)(version>=9.4.22)(!(version>=10.0.0)))"))
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.servlet/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.servlets/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.server/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.webapp/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.websocket.client/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.client/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.websocket.javax.websocket/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.client/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.websocket.javax.websocket.server/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.client/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.eclipse.jetty.websocket.server/9.4.22.v20191022 (Wired to
> org.eclipse.jetty.server/9.4.22.v20191022 which is being refreshed)
> 2020-05-27T10:50:20,914 | INFO | features-3-thread-1 | FeaturesServiceImpl
> | 11 - org.apache.karaf.features.core - 4.2.8 |
> org.ops4j.pax.web.pax-web-jetty/7.2.14 (Wired to
> org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed) {code}
> Looking into the source and debug
> [https://github.com/apache/karaf/blob/master/features/core/src/main/java/org/apache/karaf/features/internal/service/Deployer.java#L1269]
> Even though there is no dependency changes but the Deployer class still
> calculate them and added into the "Should be wired to".
> When this behavior happening, many of the installed user business bundles got
> refreshed, this is a disaster for the customer.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)