Hi According to the resolver output, it seems you install a new jetty version, causing refresh of jetty.security, cascading refresh of CXF and your bundles.
The start level doesn’t matter here: whatever the start level is, you will have the refresh happening. The refresh can be caused: 1. By an optional import 2. By a "bad" import range I will check pax-jdbc-sqlite feature and bundles to see the optional import and the range. Anyway, just to let you know that I’ve worked on a new features service to avoid this case (automatic cascading refresh) and Karaf5 extension (alternative to features) will not cause this kind of refresh. Regards JB > Le 6 janv. 2021 à 06:37, Andre Schlegel-Tylla > <andre.schlegel-ty...@virtimo.de> a écrit : > > Hello, > > we have noticed when switching from Karaf 4.0.10 to 4.2.8 that when > installing PAX JDBC features, significantly more bundles are restarted. This > causes problems for us because our bundles are also restarted and then an > error occurs because the CXF is not yet available. > > 1) Why are now significantly more bundles restarted? > 2) Shouldn't the start level of the bundles prevent the problem at that point? > 3) Do we need to specify the dependency on CXF differently? > > Here for comparison: > > Karaf 4.0.10 > virtimo@bpc()> feature:install -v pax-jdbc-sqlite > Adding features: pax-jdbc-sqlite/[1.0.1,1.0.1] > Changes to perform: > Region: root > Bundles to install: > mvn:org.ops4j.pax.jdbc/pax-jdbc-sqlite/1.0.1 > mvn:org.xerial/sqlite-jdbc/3.16.1 > Installing bundles: > mvn:org.ops4j.pax.jdbc/pax-jdbc-sqlite/1.0.1 > mvn:org.xerial/sqlite-jdbc/3.16.1 > Starting bundles: > org.xerial.sqlite-jdbc/3.16.1 > org.ops4j.pax.jdbc.sqlite/1.0.1 > Done. > > Karaf 4.2.8 > > virtimo@bpc()> feature:install -v pax-jdbc-sqlite > Adding features: pax-jdbc-sqlite/[1.4.4,1.4.4] > Changes to perform: > Region: root > Bundles to install: > mvn:org.ops4j.pax.jdbc/pax-jdbc-sqlite/1.4.4 > mvn:org.xerial/sqlite-jdbc/3.28.0 > Stopping bundles: > de.virtimo.bpc-be-analysis/4.0.0.SNAPSHOT > de.virtimo.bpc-be-core/4.0.0.SNAPSHOT > org.apache.cxf.karaf.cxf-karaf-commands/3.3.5 > org.apache.cxf.cxf-rt-wsdl/3.3.5 > org.apache.cxf.cxf-rt-ws-security/3.3.5 > org.apache.cxf.cxf-rt-ws-rm/3.3.5 > org.apache.cxf.cxf-rt-ws-policy/3.3.5 > org.apache.cxf.cxf-rt-ws-mex/3.3.5 > org.apache.cxf.cxf-rt-ws-addr/3.3.5 > org.apache.cxf.cxf-rt-transports-udp/3.3.5 > org.apache.cxf.cxf-rt-transports-local/3.3.5 > org.apache.cxf.cxf-rt-transports-jms/3.3.5 > org.apache.cxf.cxf-rt-transports-http-jetty/3.3.5 > org.apache.cxf.cxf-rt-security-saml/3.3.5 > org.apache.cxf.cxf-rt-security/3.3.5 > org.apache.cxf.cxf-rt-rs-service-description/3.3.5 > org.apache.cxf.cxf-rt-rs-json-basic/3.3.5 > org.apache.cxf.cxf-rt-rs-extension-search/3.3.5 > org.apache.cxf.cxf-rt-rs-extension-providers/3.3.5 > org.apache.cxf.cxf-rt-rs-client/3.3.5 > org.apache.cxf.cxf-rt-management/3.3.5 > org.apache.cxf.cxf-rt-javascript/3.3.5 > org.apache.cxf.cxf-rt-frontend-simple/3.3.5 > org.apache.cxf.cxf-rt-frontend-js/3.3.5 > org.apache.cxf.cxf-rt-frontend-jaxws/3.3.5 > org.apache.cxf.cxf-rt-frontend-jaxrs/3.3.5 > org.apache.cxf.cxf-rt-features-throttling/3.3.5 > org.apache.cxf.cxf-rt-features-metrics/3.3.5 > org.apache.cxf.cxf-rt-features-logging/3.3.5 > org.apache.cxf.cxf-rt-features-clustering/3.3.5 > org.apache.cxf.cxf-rt-databinding-jaxb/3.3.5 > org.apache.cxf.cxf-rt-databinding-aegis/3.3.5 > org.apache.cxf.cxf-rt-bindings-xml/3.3.5 > org.apache.cxf.cxf-rt-bindings-soap/3.3.5 > org.apache.cxf.cxf-rt-bindings-corba/3.3.5 > org.apache.cxf.cxf-rt-bindings-coloc/3.3.5 > org.apache.cxf.cxf-core/3.3.5 > org.apache.cxf.cxf-rt-transports-http/3.3.5 > org.ops4j.pax.web.pax-web-jetty/7.2.14 > org.eclipse.jetty.websocket.server/9.4.22.v20191022 > org.eclipse.jetty.websocket.javax.websocket.server/9.4.22.v20191022 > org.eclipse.jetty.websocket.javax.websocket/9.4.22.v20191022 > org.eclipse.jetty.websocket.client/9.4.22.v20191022 > org.eclipse.jetty.webapp/9.4.22.v20191022 > org.eclipse.jetty.servlets/9.4.22.v20191022 > org.eclipse.jetty.servlet/9.4.22.v20191022 > org.eclipse.jetty.server/9.4.22.v20191022 > org.eclipse.jetty.security.jaspi/9.4.22.v20191022 > org.eclipse.jetty.security/9.4.22.v20191022 > org.eclipse.jetty.rewrite/9.4.22.v20191022 > org.eclipse.jetty.proxy/9.4.22.v20191022 > org.eclipse.jetty.plus/9.4.22.v20191022 > org.eclipse.jetty.jndi/9.4.22.v20191022 > org.eclipse.jetty.jaas/9.4.22.v20191022 > org.eclipse.jetty.deploy/9.4.22.v20191022 > org.eclipse.jetty.client/9.4.22.v20191022 > org.apache.wss4j.wss4j-ws-security-stax/2.2.4 > org.apache.wss4j.wss4j-ws-security-policy-stax/2.2.4 > org.apache.wss4j.wss4j-ws-security-dom/2.2.4 > org.apache.wss4j.wss4j-ws-security-common/2.2.4 > org.apache.servicemix.bundles.opensaml/3.3.0.2 <http://3.3.0.2/> > Installing bundles: > mvn:org.ops4j.pax.jdbc/pax-jdbc-sqlite/1.4.4 > mvn:org.xerial/sqlite-jdbc/3.28.0 > Refreshing bundles: > de.virtimo.bpc-be-analysis/4.0.0.SNAPSHOT (Wired to > de.virtimo.bpc-be-core/4.0.0.SNAPSHOT which is being refreshed) > de.virtimo.bpc-be-core/4.0.0.SNAPSHOT (Wired to > org.eclipse.jetty.websocket.client/9.4.22.v20191022 which is being refreshed) > org.apache.cxf.cxf-core/3.3.5 (Wired to > org.apache.cxf.cxf-rt-transports-http-jetty/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-bindings-coloc/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-bindings-corba/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-bindings-soap/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-bindings-xml/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-databinding-aegis/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-databinding-jaxb/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-features-clustering/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-features-logging/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-features-metrics/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-features-throttling/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-frontend-jaxrs/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-frontend-jaxws/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-frontend-js/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-frontend-simple/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-javascript/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-management/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-rs-client/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-rs-extension-providers/3.3.5 (Wired to > org.apache.cxf.cxf-rt-databinding-aegis/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-rs-extension-search/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-rs-json-basic/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-rs-service-description/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-security/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-security-saml/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-transports-http/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-transports-http-jetty/3.3.5 (Should be wired to: > org.eclipse.jetty.http/9.4.22.v20191022 (through > [org.apache.cxf.cxf-rt-transports-http-jetty/3.3.5] osgi.wiring.package; > filter:="(&(osgi.wiring.package=org.eclipse.jetty.http)(version>=9.2.0)(!(version>=10.0.0)))")) > org.apache.cxf.cxf-rt-transports-jms/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-transports-local/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-transports-udp/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-ws-addr/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-ws-mex/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-ws-policy/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-ws-rm/3.3.5 (Wired to org.apache.cxf.cxf-core/3.3.5 > which is being refreshed) > org.apache.cxf.cxf-rt-ws-security/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.cxf.cxf-rt-wsdl/3.3.5 (Wired to org.apache.cxf.cxf-core/3.3.5 > which is being refreshed) > org.apache.cxf.karaf.cxf-karaf-commands/3.3.5 (Wired to > org.apache.cxf.cxf-core/3.3.5 which is being refreshed) > org.apache.servicemix.bundles.opensaml/3.3.0.2 <http://3.3.0.2/> (Wired > to de.virtimo.bpc-be-core/4.0.0.SNAPSHOT which is being refreshed) > org.apache.wss4j.wss4j-ws-security-common/2.2.4 (Wired to > org.apache.servicemix.bundles.opensaml/3.3.0.2 <http://3.3.0.2/> which is > being refreshed) > org.apache.wss4j.wss4j-ws-security-dom/2.2.4 (Wired to > org.apache.wss4j.wss4j-ws-security-common/2.2.4 which is being refreshed) > org.apache.wss4j.wss4j-ws-security-policy-stax/2.2.4 (Wired to > org.apache.wss4j.wss4j-ws-security-common/2.2.4 which is being refreshed) > org.apache.wss4j.wss4j-ws-security-stax/2.2.4 (Wired to > org.apache.wss4j.wss4j-ws-security-common/2.2.4 which is being refreshed) > 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)))")) > org.eclipse.jetty.deploy/9.4.22.v20191022 (Wired to > org.eclipse.jetty.server/9.4.22.v20191022 which is being refreshed) > org.eclipse.jetty.jaas/9.4.22.v20191022 (Wired to > org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed) > org.eclipse.jetty.jndi/9.4.22.v20191022 (Wired to > org.eclipse.jetty.server/9.4.22.v20191022 which is being refreshed) > org.eclipse.jetty.plus/9.4.22.v20191022 (Wired to > org.eclipse.jetty.jndi/9.4.22.v20191022 which is being refreshed) > org.eclipse.jetty.proxy/9.4.22.v20191022 (Wired to > org.eclipse.jetty.client/9.4.22.v20191022 which is being refreshed) > 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)))")) > 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)))")) > org.eclipse.jetty.security.jaspi/9.4.22.v20191022 (Wired to > org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed) > 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)))")) > org.eclipse.jetty.servlet/9.4.22.v20191022 (Wired to > org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed) > org.eclipse.jetty.servlets/9.4.22.v20191022 (Wired to > org.eclipse.jetty.server/9.4.22.v20191022 which is being refreshed) > org.eclipse.jetty.webapp/9.4.22.v20191022 (Wired to > org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed) > org.eclipse.jetty.websocket.client/9.4.22.v20191022 (Wired to > org.eclipse.jetty.client/9.4.22.v20191022 which is being refreshed) > org.eclipse.jetty.websocket.javax.websocket/9.4.22.v20191022 (Wired to > org.eclipse.jetty.client/9.4.22.v20191022 which is being refreshed) > 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) > org.eclipse.jetty.websocket.server/9.4.22.v20191022 (Wired to > org.eclipse.jetty.server/9.4.22.v20191022 which is being refreshed) > org.ops4j.pax.web.pax-web-jetty/7.2.14 (Wired to > org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed) > Starting bundles: > org.apache.servicemix.bundles.opensaml/3.3.0.2 <http://3.3.0.2/> > org.eclipse.jetty.server/9.4.22.v20191022 > org.eclipse.jetty.jndi/9.4.22.v20191022 > org.eclipse.jetty.client/9.4.22.v20191022 > org.eclipse.jetty.websocket.client/9.4.22.v20191022 > org.eclipse.jetty.proxy/9.4.22.v20191022 > org.eclipse.jetty.security/9.4.22.v20191022 > org.eclipse.jetty.servlet/9.4.22.v20191022 > org.eclipse.jetty.webapp/9.4.22.v20191022 > org.eclipse.jetty.deploy/9.4.22.v20191022 > org.eclipse.jetty.jaas/9.4.22.v20191022 > org.eclipse.jetty.websocket.javax.websocket/9.4.22.v20191022 > org.eclipse.jetty.websocket.server/9.4.22.v20191022 > org.eclipse.jetty.websocket.javax.websocket.server/9.4.22.v20191022 > org.eclipse.jetty.rewrite/9.4.22.v20191022 > org.eclipse.jetty.plus/9.4.22.v20191022 > org.eclipse.jetty.security.jaspi/9.4.22.v20191022 > org.eclipse.jetty.servlets/9.4.22.v20191022 > org.ops4j.pax.web.pax-web-jetty/7.2.14 > org.apache.wss4j.wss4j-ws-security-common/2.2.4 > org.apache.wss4j.wss4j-ws-security-stax/2.2.4 > org.apache.wss4j.wss4j-ws-security-policy-stax/2.2.4 > org.apache.wss4j.wss4j-ws-security-dom/2.2.4 > org.apache.cxf.cxf-rt-wsdl/3.3.5 > org.apache.cxf.cxf-rt-bindings-soap/3.3.5 > org.apache.cxf.cxf-rt-databinding-jaxb/3.3.5 > org.apache.cxf.cxf-rt-frontend-simple/3.3.5 > org.apache.cxf.cxf-rt-bindings-xml/3.3.5 > org.apache.cxf.cxf-rt-ws-policy/3.3.5 > org.apache.cxf.cxf-rt-transports-http/3.3.5 > org.apache.cxf.cxf-rt-frontend-jaxws/3.3.5 > org.apache.cxf.cxf-rt-ws-mex/3.3.5 > org.apache.cxf.cxf-rt-security/3.3.5 > org.apache.cxf.cxf-rt-frontend-jaxrs/3.3.5 > org.apache.cxf.cxf-rt-features-metrics/3.3.5 > org.apache.cxf.cxf-rt-management/3.3.5 > org.apache.cxf.cxf-rt-ws-addr/3.3.5 > org.apache.cxf.cxf-rt-ws-rm/3.3.5 > org.apache.cxf.cxf-rt-databinding-aegis/3.3.5 > org.apache.cxf.cxf-rt-transports-http-jetty/3.3.5 > org.apache.cxf.cxf-rt-transports-jms/3.3.5 > org.apache.cxf.cxf-rt-bindings-coloc/3.3.5 > org.apache.cxf.cxf-rt-security-saml/3.3.5 > org.apache.cxf.cxf-rt-rs-extension-search/3.3.5 > org.apache.cxf.cxf-rt-transports-local/3.3.5 > org.apache.cxf.cxf-rt-ws-security/3.3.5 > org.apache.cxf.cxf-rt-rs-json-basic/3.3.5 > org.apache.cxf.cxf-rt-rs-extension-providers/3.3.5 > org.apache.cxf.cxf-rt-features-clustering/3.3.5 > org.apache.cxf.cxf-rt-bindings-corba/3.3.5 > org.apache.cxf.cxf-rt-features-logging/3.3.5 > org.apache.cxf.cxf-rt-features-throttling/3.3.5 > org.apache.cxf.cxf-rt-javascript/3.3.5 > org.apache.cxf.karaf.cxf-karaf-commands/3.3.5 > org.apache.cxf.cxf-rt-frontend-js/3.3.5 > org.apache.cxf.cxf-rt-rs-service-description/3.3.5 > org.apache.cxf.cxf-rt-transports-udp/3.3.5 > org.apache.cxf.cxf-core/3.3.5 > org.apache.cxf.cxf-rt-rs-client/3.3.5 > org.xerial.sqlite-jdbc/3.28.0 > org.ops4j.pax.jdbc.sqlite/1.4.4 > de.virtimo.bpc-be-core/4.0.0.SNAPSHOT > de.virtimo.bpc-be-analysis/4.0.0.SNAPSHOT > Done. > > Kind Regards > Andre