Hi,

I bet the refresh is due to optional import.

Let me check the resolver output.

Regards
JB

On Tue, Feb 14, 2023 at 2:55 PM Ephemeris Lappis
<[email protected]> wrote:
>
> Hello.
>
> After pax-jdbc-config, we've found another feature that restarts the
> HTTP and that makes Jolokia fail : camel-bindy. I don't understand
> why...
>
> To avoid the side-effect of installing pax-jdbc-config, we've added it
> to the Karaf's boot feature as we know it's available from "raw"
> install. This is an acceptable workaround.
>
> But for camel-bindy, as the Camel repository is not available at the
> moment of the first install, we can't do the same. It's important for
> us not to couple the version of Camel to Keraf image, and decide for
> it later at deployment time.
>
> So, what feedback do you have on Jolokia's uses for deployments when
> Jolokia itself can be impacted by side effects of someactions, and
> fail during its own execution ?
>
> Thanks again for help !
>
> Regards.
>
> Le lun. 13 févr. 2023 à 17:10, Ephemeris Lappis
> <[email protected]> a écrit :
> >
> > Hello.
> >
> > Reading my mail I see that the logs are missing. I added them at the
> > end of this message...
> >
> > After more tests, it seems that the guilty module is pax-jdbc-config
> > that registers something with http. Perhaps someone knows what and
> > why...
> > Adding manually this feature before produces the same side effect, and
> > installing our feature with jolokia after doesn't fail anymore.
> >
> > The question is still how can we deploy with jolokia something that
> > breaks the http request/response :( ?
> >
> > The missing logs :
> >
> > 15:28:56.947 INFO  [qtp312812427-203] Adding features:
> > caterpillar-system-jdbc/[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]
> > 15:28:57.481 INFO  [features-3-thread-1] Changes to perform:
> > 15:28:57.482 INFO  [features-3-thread-1]   Region: root
> > 15:28:57.482 INFO  [features-3-thread-1]     Bundles to install:
> > 15:28:57.483 INFO  [features-3-thread-1]
> > mvn:jakarta.el/jakarta.el-api/3.0.3
> > 15:28:57.483 INFO  [features-3-thread-1]
> > mvn:javax.enterprise/cdi-api/2.0.SP1
> > 15:28:57.484 INFO  [features-3-thread-1]
> > mvn:javax.interceptor/javax.interceptor-api/1.2.2
> > 15:28:57.484 INFO  [features-3-thread-1]
> > mvn:javax.transaction/javax.transaction-api/1.2
> > 15:28:57.484 INFO  [features-3-thread-1]
> > mvn:org.apache.commons/commons-dbcp2/2.9.0
> > 15:28:57.484 INFO  [features-3-thread-1]
> > mvn:org.apache.commons/commons-pool2/2.11.1
> > 15:28:57.484 INFO  [features-3-thread-1]
> > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.3.0_1
> > 15:28:57.484 INFO  [features-3-thread-1]
> > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jasypt/1.9.3_1
> > 15:28:57.485 INFO  [features-3-thread-1]
> > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax-inject/1_3
> > 15:28:57.485 INFO  [features-3-thread-1]
> > mvn:org.ops4j.pax.jdbc/pax-jdbc-config/1.5.5
> > 15:28:57.485 INFO  [features-3-thread-1]
> > mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.5.5
> > 15:28:57.485 INFO  [features-3-thread-1]
> > mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.5.5
> > 15:28:57.486 INFO  [features-3-thread-1]
> > mvn:org.ops4j.pax.transx/pax-transx-tm-api/0.5.3
> > 15:28:57.486 INFO  [features-3-thread-1]
> > mvn:org.ops4j.pax.transx/pax-transx-tm-geronimo/0.5.3
> > 15:28:57.486 INFO  [features-3-thread-1]
> > mvn:org.osgi/org.osgi.service.jdbc/1.0.1
> > 15:28:57.486 INFO  [features-3-thread-1]
> > mvn:org.apache.aries.tx-control/tx-control-service-local/1.0.1
> > 15:28:57.486 INFO  [features-3-thread-1]
> > mvn:org.apache.aries.tx-control/tx-control-service-xa/1.0.1
> > 15:28:57.487 INFO  [features-3-thread-1] Installing bundles:
> > 15:28:57.488 INFO  [features-3-thread-1]   
> > mvn:jakarta.el/jakarta.el-api/3.0.3
> > 15:28:57.490 INFO  [features-3-thread-1]   
> > mvn:javax.enterprise/cdi-api/2.0.SP1
> > 15:28:57.493 INFO  [features-3-thread-1]
> > mvn:javax.interceptor/javax.interceptor-api/1.2.2
> > 15:28:57.494 INFO  [features-3-thread-1]
> > mvn:javax.transaction/javax.transaction-api/1.2
> > 15:28:57.496 INFO  [features-3-thread-1]
> > mvn:org.apache.commons/commons-dbcp2/2.9.0
> > 15:28:57.498 INFO  [features-3-thread-1]
> > mvn:org.apache.commons/commons-pool2/2.11.1
> > 15:28:57.500 INFO  [features-3-thread-1]
> > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.3.0_1
> > 15:28:57.502 INFO  [features-3-thread-1]
> > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jasypt/1.9.3_1
> > 15:28:57.505 INFO  [features-3-thread-1]
> > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax-inject/1_3
> > 15:28:57.506 INFO  [features-3-thread-1]
> > mvn:org.ops4j.pax.jdbc/pax-jdbc-config/1.5.5
> > 15:28:57.508 INFO  [features-3-thread-1]
> > mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.5.5
> > 15:28:57.509 INFO  [features-3-thread-1]
> > mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.5.5
> > 15:28:57.510 INFO  [features-3-thread-1]
> > mvn:org.ops4j.pax.transx/pax-transx-tm-api/0.5.3
> > 15:28:57.512 INFO  [features-3-thread-1]
> > mvn:org.ops4j.pax.transx/pax-transx-tm-geronimo/0.5.3
> > 15:28:57.513 INFO  [features-3-thread-1]
> > mvn:org.osgi/org.osgi.service.jdbc/1.0.1
> > 15:28:57.515 INFO  [features-3-thread-1]
> > mvn:org.apache.aries.tx-control/tx-control-service-local/1.0.1
> > 15:28:57.516 INFO  [features-3-thread-1]
> > mvn:org.apache.aries.tx-control/tx-control-service-xa/1.0.1
> > 15:28:57.537 INFO  [features-3-thread-1] Starting bundles:
> > 15:28:57.539 INFO  [features-3-thread-1]
> > org.apache.servicemix.bundles.cglib/3.3.0.1
> > 15:28:57.540 INFO  [features-3-thread-1]   javax.el-api/3.0.3
> > 15:28:57.542 INFO  [features-3-thread-1]
> > org.apache.servicemix.bundles.javax-inject/1.0.0.3
> > 15:28:57.543 INFO  [features-3-thread-1]   javax.interceptor-api/1.2.2
> > 15:28:57.544 INFO  [features-3-thread-1]   
> > javax.enterprise.cdi-api/2.0.0.SP1
> > 15:28:57.545 INFO  [features-3-thread-1]   javax.transaction-api/1.2.0
> > 15:28:57.546 INFO  [features-3-thread-1]
> > org.osgi.service.jdbc/1.0.1.202109301733
> > 15:28:57.547 INFO  [features-3-thread-1]   
> > org.ops4j.pax.jdbc.pool.common/1.5.5
> > 15:28:57.548 INFO  [features-3-thread-1]
> > org.ops4j.pax.transx.pax-transx-tm-api/0.5.3
> > 15:28:57.550 INFO  [features-3-thread-1]   tx-control-service-local/1.0.1
> > 15:28:57.552 INFO  [features-3-thread-1] Registering a new Local
> > TransactionControl service with properties {service.vendor=Apache
> > Aries, service.description=The Apache Aries Transaction Control
> > Service for Local Transactions, osgi.local.enabled=true}
> > 15:28:57.555 INFO  [features-3-thread-1]   tx-control-service-xa/1.0.1
> > 15:28:57.557 INFO  [features-3-thread-1] Registering for configuration
> > updates {service.vendor=Apache Aries,
> > service.pid=org.apache.aries.tx.control.service.xa,
> > service.description=Managed Service for the Apache Aries Transaction
> > Control Service with XA Transactions}
> > 15:28:57.560 INFO  [features-3-thread-1]
> > org.apache.servicemix.bundles.jasypt/1.9.3.1
> > 15:28:57.561 INFO  [features-3-thread-1]
> > org.apache.commons.commons-pool2/2.11.1
> > 15:28:57.562 INFO  [features-3-thread-1]
> > org.apache.commons.commons-dbcp2/2.9.0
> > 15:28:57.563 INFO  [features-3-thread-1]   
> > org.ops4j.pax.jdbc.pool.dbcp2/1.5.5
> > 15:28:57.569 INFO  [features-3-thread-1]   org.ops4j.pax.jdbc.config/1.5.5
> > 15:28:57.589 INFO  [features-3-thread-1]
> > org.ops4j.pax.transx.pax-transx-tm-geronimo/0.5.3
> > 15:28:57.596 INFO  [features-3-thread-1] Done.
> > 15:28:57.647 INFO  [paxtransx-config-1-thread-1] TransactionManager
> > service detected. Providing support for XA DataSourceFactories
> > 15:28:57.927 INFO  [features-3-thread-1] Changes to perform:
> > 15:28:57.928 INFO  [features-3-thread-1]   Region: root
> > 15:28:57.928 INFO  [features-3-thread-1]     Bundles to install:
> > 15:28:57.928 INFO  [features-3-thread-1]
> > mvn:org.postgresql/postgresql/42.5.3
> > 15:28:57.929 INFO  [features-3-thread-1] Stopping bundles:
> > 15:28:57.930 INFO  [features-3-thread-1]
> > org.ops4j.pax.web.pax-web-runtime/8.0.15
> > 15:28:57.930 INFO  [features-3-thread-1] Unregistering current
> > HttpServiceRuntime
> > 15:28:57.931 INFO  [features-3-thread-1] Unregistering current
> > HttpService factory
> > 15:28:57.933 INFO  [paxweb-config-1-thread-1] Unregistering servlet by
> > alias "/exchanges/karaf/jolokia"
> > 15:28:57.935 INFO  [paxweb-config-1-thread-1] Receiving
> > Batch{"Unregistration of servlets:
> > [ServletModel{id=ServletModel-8,name='org.jolokia.osgi.servlet.JolokiaServlet',alias='/exchanges/karaf/jolokia',urlPatterns=[/exchanges/karaf/jolokia/*],servlet=org.jolokia.osgi.servlet.JolokiaServlet@2b7249dd,contexts=[{HS,OCM-9,context:332505102,/}]}]",
> > size=1}
> > 15:28:57.938 INFO  [paxweb-config-1-thread-1] Removing servlet
> > ServletModel{id=ServletModel-8,name='org.jolokia.osgi.servlet.JolokiaServlet',alias='/exchanges/karaf/jolokia',urlPatterns=[/exchanges/karaf/jolokia/*],servlet=org.jolokia.osgi.servlet.JolokiaServlet@2b7249dd,contexts=[{HS,OCM-9,context:332505102,/}]}
> > 15:28:57.952 INFO  [activator-1-thread-4] Http plugin deactivated
> > 15:28:57.952 INFO  [paxweb-config-1-thread-1] Unregistering servlet by
> > alias "/system/console/res"
> > 15:28:57.953 INFO  [paxweb-config-1-thread-1] Receiving
> > Batch{"Unregistration of servlets:
> > [ServletModel{id=ServletModel-7,name='default-727ae8d6-c1e4-40b1-b238-a0fbf0b19d7a',alias='/system/console/res',urlPatterns=[/system/console/res/*],contexts=[{HS,OCM-5,context:1964284240,/}]}]",
> > size=1}
> > 15:28:57.953 INFO  [paxweb-config-1-thread-1] Removing servlet
> > ServletModel{id=ServletModel-7,name='default-727ae8d6-c1e4-40b1-b238-a0fbf0b19d7a',alias='/system/console/res',urlPatterns=[/system/console/res/*],contexts=[{HS,OCM-5,context:1964284240,/}]}
> > 15:28:57.954 INFO  [paxweb-config-1-thread-1] Unregistering servlet by
> > alias "/system/console"
> > 15:28:57.954 INFO  [paxweb-config-1-thread-1] Receiving
> > Batch{"Unregistration of servlets:
> > [ServletModel{id=ServletModel-4,name='org.apache.felix.webconsole.internal.servlet.KarafOsgiManager',alias='/system/console',urlPatterns=[/system/console/*],servlet=org.apache.felix.webconsole.internal.servlet.KarafOsgiManager@4bfcc65b,contexts=[{HS,OCM-5,context:1964284240,/}]}]",
> > size=1}
> > 15:28:57.954 INFO  [activator-1-thread-3] Unregistering commands for
> > bundle org.apache.karaf.http.core/4.4.3
> > 15:28:57.955 INFO  [paxweb-config-1-thread-1] Removing servlet
> > ServletModel{id=ServletModel-4,name='org.apache.felix.webconsole.internal.servlet.KarafOsgiManager',alias='/system/console',urlPatterns=[/system/console/*],servlet=org.apache.felix.webconsole.internal.servlet.KarafOsgiManager@4bfcc65b,contexts=[{HS,OCM-5,context:1964284240,/}]}
> > 15:28:57.957 INFO  [features-3-thread-1] Unbinding HTTP Service from
> > bundle: [org.apache.karaf.webconsole.console [51]]
> > 15:28:57.960 INFO  [paxweb-config-1-thread-1] Receiving
> > Batch{"Stopping HttpService (enabled) for bundle
> > org.apache.karaf.webconsole.console [51]", size=6}
> > 15:28:57.961 INFO  [paxweb-config-1-thread-1] Removing
> > OsgiContextModel{HS,id=OCM-3,name='default',path='/',bundle=org.apache.karaf.webconsole.console,context=DefaultHttpContext{bundle=org.apache.karaf.webconsole.console
> > [51],contextId='default'}} from
> > o.o.p.w.s.j.i.PaxWebServletContextHandler@2f093de1{/,null,AVAILABLE}
> > 15:28:57.961 INFO  [features-3-thread-1] Unbinding HTTP Service from
> > bundle: [org.apache.karaf.webconsole.http [54]]
> > 15:28:57.961 INFO  [paxweb-config-1-thread-1] Unegistering
> > OsgiServletContext{model=OsgiContextModel{HS,id=OCM-3,name='default',path='/',bundle=org.apache.karaf.webconsole.console,context=DefaultHttpContext{bundle=org.apache.karaf.webconsole.console
> > [51],contextId='default'}}} as OSGi service for "/" context path
> > 15:28:57.961 INFO  [features-3-thread-1] Unbinding HTTP Service from
> > bundle: [org.jolokia.osgi [73]]
> > 15:28:57.962 INFO  [features-3-thread-1] Unbinding HTTP Service from
> > bundle: [org.apache.karaf.http.core [37]]
> > 15:28:57.962 INFO  [paxweb-config-1-thread-1] Stopping Jetty context "/"
> > 15:28:57.963 INFO  [paxweb-config-1-thread-1] Stopped
> > o.o.p.w.s.j.i.PaxWebServletContextHandler@2f093de1{/,null,STOPPED}
> > 15:28:57.963 INFO  [features-3-thread-1] Scheduling Pax Web
> > reconfiguration because ServerControllerFactory has been unregistered
> > 15:28:57.964 INFO  [paxweb-config-1-thread-1] Changing default OSGi
> > context model for
> > o.o.p.w.s.j.i.PaxWebServletContextHandler@2f093de1{/,null,STOPPED}
> > 15:28:57.964 INFO  [paxweb-config-1-thread-1] Registering
> > OsgiServletContext{model=OsgiContextModel{HS,id=OCM-5,name='context:1964284240',path='/',bundle=org.apache.karaf.webconsole.console,context=WebContainerContextWrapper{bundle=org.apache.karaf.webconsole.console
> > [51],contextId='context:1964284240',delegate=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@75149950}}}
> > as OSGi service for "/" context path
> > 15:28:57.965 INFO  [paxweb-config-1-thread-1] Removing
> > OsgiContextModel{HS,id=OCM-5,name='context:1964284240',path='/',bundle=org.apache.karaf.webconsole.console,context=WebContainerContextWrapper{bundle=org.apache.karaf.webconsole.console
> > [51],contextId='context:1964284240',delegate=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@75149950}}
> > from o.o.p.w.s.j.i.PaxWebServletContextHandler@2f093de1{/,null,STOPPED}
> > 15:28:57.965 INFO  [paxweb-config-1-thread-1] Unegistering
> > OsgiServletContext{model=OsgiContextModel{HS,id=OCM-5,name='context:1964284240',path='/',bundle=org.apache.karaf.webconsole.console,context=WebContainerContextWrapper{bundle=org.apache.karaf.webconsole.console
> > [51],contextId='context:1964284240',delegate=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@75149950}}}
> > as OSGi service for "/" context path
> > 15:28:57.966 INFO  [paxweb-config-1-thread-1] Changing default OSGi
> > context model for
> > o.o.p.w.s.j.i.PaxWebServletContextHandler@2f093de1{/,null,STOPPED}
> > 15:28:57.966 INFO  [paxweb-config-1-thread-1] Registering
> > OsgiServletContext{model=OsgiContextModel{HS,id=OCM-9,name='context:332505102',path='/',bundle=org.jolokia.osgi,context=WebContainerContextWrapper{bundle=org.jolokia.osgi
> > [73],contextId='context:332505102',delegate=org.jolokia.osgi.security.BasicAuthenticationHttpContext@13d1a00e}}}
> > as OSGi service for "/" context path
> > 15:28:57.967 INFO  [paxweb-config-1-thread-1] Starting Jetty context
> > "/" with default Osgi Context
> > OsgiContextModel{HS,id=OCM-9,name='context:332505102',path='/',bundle=org.jolokia.osgi,context=WebContainerContextWrapper{bundle=org.jolokia.osgi
> > [73],contextId='context:332505102',delegate=org.jolokia.osgi.security.BasicAuthenticationHttpContext@13d1a00e}}
> > 15:28:57.968 INFO  [paxweb-config-1-thread-1] Started
> > o.o.p.w.s.j.i.PaxWebServletContextHandler@2f093de1{/,null,AVAILABLE}
> > 15:28:57.968 INFO  [paxweb-config-1-thread-1] Receiving
> > Batch{"Stopping HttpService (enabled) for bundle
> > org.apache.karaf.webconsole.http [54]", size=0}
> > 15:28:57.969 INFO  [paxweb-config-1-thread-1] Receiving
> > Batch{"Stopping HttpService (enabled) for bundle org.jolokia.osgi
> > [73]", size=4}
> > 15:28:57.969 INFO  [paxweb-config-1-thread-1] Removing
> > OsgiContextModel{HS,id=OCM-9,name='context:332505102',path='/',bundle=org.jolokia.osgi,context=WebContainerContextWrapper{bundle=org.jolokia.osgi
> > [73],contextId='context:332505102',delegate=org.jolokia.osgi.security.BasicAuthenticationHttpContext@13d1a00e}}
> > from o.o.p.w.s.j.i.PaxWebServletContextHandler@2f093de1{/,null,AVAILABLE}
> > 15:28:57.969 INFO  [paxweb-config-1-thread-1] Unegistering
> > OsgiServletContext{model=OsgiContextModel{HS,id=OCM-9,name='context:332505102',path='/',bundle=org.jolokia.osgi,context=WebContainerContextWrapper{bundle=org.jolokia.osgi
> > [73],contextId='context:332505102',delegate=org.jolokia.osgi.security.BasicAuthenticationHttpContext@13d1a00e}}}
> > as OSGi service for "/" context path
> > 15:28:57.970 INFO  [paxweb-config-1-thread-1] Stopping Jetty context "/"
> > 15:28:57.970 INFO  [paxweb-config-1-thread-1] Stopped
> > o.o.p.w.s.j.i.PaxWebServletContextHandler@2f093de1{/,null,STOPPED}
> > 15:28:57.971 INFO  [paxweb-config-1-thread-1] Receiving
> > Batch{"Stopping HttpService (enabled) for bundle
> > org.apache.karaf.http.core [37]", size=0}
> > 15:28:57.971 INFO  [paxweb-config-1-thread-1 (change controller)]
> > Stopping current server controller
> > JettyServerController{configuration=9fba1b50-e649-4ac7-942c-f280a6b63738,state=STARTED}
> > 15:28:57.971 INFO  [paxweb-config-1-thread-1 (change controller)]
> > Stopping 
> > JettyServerController{configuration=9fba1b50-e649-4ac7-942c-f280a6b63738,state=STARTED}
> > 15:28:57.972 INFO  [paxweb-config-1-thread-1 (change controller)]
> > Stopping Server@12908c33{STARTED}[9.4.50.v20221201]
> > 15:28:57.972 INFO  [paxweb-config-1-thread-1 (change controller)]
> > Destroying Jetty JMX MBean container
> > 15:28:57.980 INFO  [paxweb-config-1-thread-1 (change controller)]
> > Stopped default@189e647b{HTTP/1.1, (http/1.1)}{0.0.0.0:8181}
> > 15:28:57.980 INFO  [paxweb-config-1-thread-1 (change controller)]
> > node0 Stopped scavenging
> > 15:28:57.981 INFO  [paxweb-config-1-thread-1 (change controller)]
> > Stopping Jetty thread pool
> > QueuedThreadPool[qtp312812427]@12a5238b{STARTED,0<=10<=200,i=6,r=-1,q=0}[ReservedThreadExecutor@6385d9d2{reserved=3/12,pending=0}]
> > 15:28:59.304 INFO  [fileinstall-/opt/apache-karaf-4.4.3/etc] Updating
> > configuration {org.ops4j.pax.transx.tm.geronimo} from
> > /opt/apache-karaf-4.4.3/etc/org.ops4j.pax.transx.tm.geronimo.cfg
> > 15:28:59.309 INFO  [paxtransx-config-1-thread-2] TransactionManager
> > service lost. Shutting down support for XA DataSourceFactories
> > 15:28:59.317 INFO  [paxtransx-config-1-thread-2] TransactionManager
> > service detected. Providing support for XA DataSourceFactories
> > 15:29:00.484 INFO  [paxweb-config-1-thread-1 (change controller)]
> > Destroying Jetty server Server@12908c33{STOPPED}[9.4.50.v20221201]
> > 15:29:00.486 INFO  [paxweb-config-1-thread-1 (change controller)]
> > ServerControllerFactory is gone, HTTP Service is not available now.
> > 15:29:00.487 INFO  [features-3-thread-1] Pax Web Runtime stopped
> > 15:29:00.489 INFO  [features-3-thread-1] Installing bundles:
> > 15:29:00.489 INFO  [features-3-thread-1]   
> > mvn:org.postgresql/postgresql/42.5.3
> > 15:29:00.497 INFO  [features-3-thread-1] Refreshing bundles:
> > 15:29:00.497 INFO  [features-3-thread-1]
> > org.ops4j.pax.web.pax-web-runtime/8.0.15 (Should be wired to:
> > org.apache.servicemix.bundles.jasypt/1.9.3.1 (through
> > [org.ops4j.pax.web.pax-web-runtime/8.0.15] osgi.wiring.package;
> > resolution:=optional;
> > filter:="(osgi.wiring.package=org.jasypt.encryption)"))
> > 15:29:00.505 INFO  [features-3-thread-1] Starting bundles:
> > 15:29:00.505 INFO  [features-3-thread-1]
> > org.ops4j.pax.web.pax-web-runtime/8.0.15
> > 15:29:00.510 INFO  [CM Configuration Updater (ManagedService Update:
> > pid=[org.ops4j.pax.web])] Scheduling Pax Web reconfiguration because
> > configuration has changed
> > 15:29:00.511 INFO  [features-3-thread-1] EventAdmin support enabled,
> > WAB events will be posted to EventAdmin topics.
> > 15:29:00.514 INFO  [features-3-thread-1] Pax Web Runtime started
> > 15:29:00.514 INFO  [paxweb-config-4-thread-1 (change config)]
> > Scheduling Pax Web reconfiguration because ServerControllerFactory has
> > been registered
> > 15:29:00.515 INFO  [features-3-thread-1]   org.postgresql.jdbc/42.5.3
> > 15:29:00.525 INFO  [features-3-thread-1] Found DataSourceFactory.
> > Creating DataSource jdbc/fifi
> > 15:29:00.531 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Configuring server controller
> > org.ops4j.pax.web.service.jetty.internal.JettyServerController
> > 15:29:00.532 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Configuring 
> > JettyServerController{configuration=5148e6bc-2f9d-4212-80b1-85100ae0e630,state=UNCONFIGURED}
> > 15:29:00.532 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Creating Jetty server instance using configuration properties.
> > 15:29:00.533 INFO  [paxweb-config-4-thread-1 (change controller)] No
> > external Jetty configuration files specified. Default/PID
> > configuration will be used.
> > 15:29:00.541 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Creating non secure connector for address 0.0.0.0:8181
> > 15:29:00.542 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Default Jetty connector created: default@4de47375{HTTP/1.1,
> > (http/1.1)}{0.0.0.0:8181}
> > 15:29:00.542 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Eagerly starting Jetty thread pool
> > QueuedThreadPool[qtp1044869339]@3e4770db{STOPPED,0<=0<=200,i=0,r=-1,q=0}[NO_TRY]
> > 15:29:00.542 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Adding JMX support to Jetty server
> > 15:29:00.549 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Starting server controller
> > org.ops4j.pax.web.service.jetty.internal.JettyServerController
> > 15:29:00.549 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Starting 
> > JettyServerController{configuration=5148e6bc-2f9d-4212-80b1-85100ae0e630,state=STOPPED}
> > 15:29:00.550 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Starting Server@56ded62c{STOPPED}[9.4.50.v20221201]
> > 15:29:00.550 INFO  [paxweb-config-4-thread-1 (change controller)]
> > jetty-9.4.50.v20221201; built: 2022-12-01T22:07:03.915Z; git:
> > da9a0b30691a45daf90a9f17b5defa2f1434f882; jvm
> > 11.0.17+8-post-Ubuntu-1ubuntu218.04
> > 15:29:00.551 INFO  [paxweb-config-4-thread-1 (change controller)]
> > DefaultSessionIdManager workerName=node0
> > 15:29:00.551 INFO  [paxweb-config-4-thread-1 (change controller)] No
> > SessionScavenger set, using defaults
> > 15:29:00.552 INFO  [paxweb-config-4-thread-1 (change controller)]
> > node0 Scavenging every 600000ms
> > 15:29:00.553 INFO  [features-3-thread-1] Done.
> > 15:29:00.559 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Started default@4de47375{HTTP/1.1, (http/1.1)}{0.0.0.0:8181}
> > 15:29:00.560 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Started @63624ms
> > 15:29:00.561 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Registering HttpService factory
> > 15:29:00.562 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Binding HTTP Service for bundle: [org.jolokia.osgi [73]]
> > 15:29:00.571 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Created new ServletContextModel{id=ServletContextModel-16,contextPath='/'}
> > 15:29:00.572 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Registering 
> > ServletModel{id=ServletModel-15,name='org.jolokia.osgi.servlet.JolokiaServlet',alias='/exchanges/karaf/jolokia',urlPatterns=[/exchanges/karaf/jolokia/*],servlet=org.jolokia.osgi.servlet.JolokiaServlet@24d4f76e,contexts=[{HS,OCM-17,context:332505102,/}]}
> > 15:29:00.572 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Receiving Batch{"Registration of
> > ServletModel{id=ServletModel-15,name='org.jolokia.osgi.servlet.JolokiaServlet',alias='/exchanges/karaf/jolokia',urlPatterns=[/exchanges/karaf/jolokia/*],servlet=org.jolokia.osgi.servlet.JolokiaServlet@24d4f76e,contexts=null}",
> > size=4}
> > 15:29:00.572 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Creating new Jetty context for
> > ServletContextModel{id=ServletContextModel-16,contextPath='/'}
> > 15:29:00.574 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Adding 
> > OsgiContextModel{HS,id=OCM-17,name='context:332505102',path='/',bundle=org.jolokia.osgi,context=WebContainerContextWrapper{bundle=org.jolokia.osgi
> > [73],contextId='context:332505102',delegate=org.jolokia.osgi.security.BasicAuthenticationHttpContext@13d1a00e}}
> > to o.o.p.w.s.j.i.PaxWebServletContextHandler@23fb01c1{/,null,STOPPED}
> > 15:29:00.575 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Changing default OSGi context model for
> > o.o.p.w.s.j.i.PaxWebServletContextHandler@23fb01c1{/,null,STOPPED}
> > 15:29:00.575 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Registering 
> > OsgiServletContext{model=OsgiContextModel{HS,id=OCM-17,name='context:332505102',path='/',bundle=org.jolokia.osgi,context=WebContainerContextWrapper{bundle=org.jolokia.osgi
> > [73],contextId='context:332505102',delegate=org.jolokia.osgi.security.BasicAuthenticationHttpContext@13d1a00e}}}
> > as OSGi service for "/" context path
> > 15:29:00.576 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Adding servlet 
> > ServletModel{id=ServletModel-15,name='org.jolokia.osgi.servlet.JolokiaServlet',alias='/exchanges/karaf/jolokia',urlPatterns=[/exchanges/karaf/jolokia/*],servlet=org.jolokia.osgi.servlet.JolokiaServlet@24d4f76e,contexts=[{HS,OCM-17,context:332505102,/}]}
> > 15:29:00.577 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Starting Jetty context "/" with default Osgi Context
> > OsgiContextModel{HS,id=OCM-17,name='context:332505102',path='/',bundle=org.jolokia.osgi,context=WebContainerContextWrapper{bundle=org.jolokia.osgi
> > [73],contextId='context:332505102',delegate=org.jolokia.osgi.security.BasicAuthenticationHttpContext@13d1a00e}}
> > 15:29:00.578 INFO  [paxweb-config-4-thread-1 (change controller)] No
> > access restrictor found, access to any MBean is allowed
> > 15:29:00.580 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Started o.o.p.w.s.j.i.PaxWebServletContextHandler@23fb01c1{/,null,AVAILABLE}
> > 15:29:00.581 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Binding HTTP Service for bundle: [org.apache.karaf.webconsole.http
> > [54]]
> > 15:29:00.581 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Binding HTTP Service for bundle: [org.apache.karaf.http.core [37]]
> > 15:29:00.582 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Binding HTTP Service for bundle: [org.apache.karaf.webconsole.console
> > [51]]
> > 15:29:00.582 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Receiving Batch{"Initialization of HttpContext "default" for
> > org.apache.karaf.webconsole.console [51]", size=2}
> > 15:29:00.583 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Adding 
> > OsgiContextModel{HS,id=OCM-19,name='default',path='/',bundle=org.apache.karaf.webconsole.console,context=DefaultHttpContext{bundle=org.apache.karaf.webconsole.console
> > [51],contextId='default'}} to
> > o.o.p.w.s.j.i.PaxWebServletContextHandler@23fb01c1{/,null,AVAILABLE}
> > 15:29:00.584 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Registering 
> > ServletModel{id=ServletModel-20,name='org.apache.felix.webconsole.internal.servlet.KarafOsgiManager',alias='/system/console',urlPatterns=[/system/console/*],servlet=org.apache.felix.webconsole.internal.servlet.KarafOsgiManager@4bfcc65b,contexts=[{HS,OCM-21,context:619808862,/}]}
> > 15:29:00.584 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Receiving Batch{"Registration of
> > ServletModel{id=ServletModel-20,name='org.apache.felix.webconsole.internal.servlet.KarafOsgiManager',alias='/system/console',urlPatterns=[/system/console/*],servlet=org.apache.felix.webconsole.internal.servlet.KarafOsgiManager@4bfcc65b,contexts=null}",
> > size=3}
> > 15:29:00.584 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Adding 
> > OsgiContextModel{HS,id=OCM-21,name='context:619808862',path='/',bundle=org.apache.karaf.webconsole.console,context=WebContainerContextWrapper{bundle=org.apache.karaf.webconsole.console
> > [51],contextId='context:619808862',delegate=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@24f1885e}}
> > to o.o.p.w.s.j.i.PaxWebServletContextHandler@23fb01c1{/,null,AVAILABLE}
> > 15:29:00.584 INFO  [activator-1-thread-4] Registering commands for
> > bundle org.apache.karaf.http.core/4.4.3
> > 15:29:00.584 INFO  [activator-1-thread-7] Http plugin activated
> > 15:29:00.586 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Adding servlet 
> > ServletModel{id=ServletModel-20,name='org.apache.felix.webconsole.internal.servlet.KarafOsgiManager',alias='/system/console',urlPatterns=[/system/console/*],servlet=org.apache.felix.webconsole.internal.servlet.KarafOsgiManager@4bfcc65b,contexts=[{HS,OCM-21,context:619808862,/}]}
> > 15:29:00.587 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Registering resources with [/system/console/res] mapping(s) and
> > resource base "res"
> > 15:29:00.588 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Registering 
> > ServletModel{id=ServletModel-22,name='default-f61b6ede-caf7-4aa4-bbad-e8d1b3339798',alias='/system/console/res',urlPatterns=[/system/console/res/*],contexts=[{HS,OCM-21,context:619808862,/}]}
> > 15:29:00.590 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Receiving Batch{"Registration of
> > ServletModel{id=ServletModel-22,name='default-f61b6ede-caf7-4aa4-bbad-e8d1b3339798',alias='/system/console/res',urlPatterns=[/system/console/res/*],contexts=null}",
> > size=1}
> > 15:29:00.590 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Adding servlet 
> > ServletModel{id=ServletModel-22,name='default-f61b6ede-caf7-4aa4-bbad-e8d1b3339798',alias='/system/console/res',urlPatterns=[/system/console/res/*],contexts=[{HS,OCM-21,context:619808862,/}]}
> > 15:29:00.591 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Initialized Jetty Resource Servlet for base="res" with cache
> > maxSize=4096kB, maxEntrySize=2048kB, maxEntries=2048
> > 15:29:00.592 INFO  [paxweb-config-4-thread-1 (change controller)]
> > Registering HttpServiceRuntime
> >
> >
> > Thanks again.
> >
> > Regards.
> >
> > Le lun. 13 févr. 2023 à 14:27, Ephemeris Lappis
> > <[email protected]> a écrit :
> > >
> > > Hello.
> > >
> > > Installing the following feature with Jolokia is failing because it
> > > triggers a strange restart of Joloka/HTTP bundles, leading to a broken
> > > socket.
> > >
> > > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> > > <features xmlns="http://karaf.apache.org/xmlns/features/v1.6.0";
> > > name="caterpillar-system-jdbc">
> > >     <feature name="caterpillar-system-jdbc"
> > > description="Caterpillar::System::JDBC" version="0.0.1.SNAPSHOT">
> > >         <details>Caterpillar :: System :: JDBC data source for Alice
> > > database</details>
> > >         <feature prerequisite="true">transaction</feature>
> > >         <feature prerequisite="true">pax-jdbc-config</feature>
> > >         <feature prerequisite="true">pax-jdbc-pool-dbcp2</feature>
> > >         <bundle>mvn:org.postgresql/postgresql/42.5.3</bundle>
> > >     </feature>
> > > </features>
> > >
> > > The logs below show that the feature-install produces a full reset of
> > > HTTP. This is rather annoying since it breaks the current install
> > > request but also the other Jokoia calls until the HTTP is back.
> > >
> > > Is it a bug, or is there any way to control what the feature installing 
> > > does ?
> > >
> > > Thanks for your help.
> > >
> > > Regards.

Reply via email to