You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Michael Brohl <mb...@apache.org> on 2021/03/09 08:10:58 UTC

Strategy for installling features in the correct versions

Hi,

I am struggling with a fresh setup on Karaf 4.3.0, trying to install 
Apache Camel, ActiveMQ and Hawt.io in current versions.

Depending on the order of installation, I get different errors leaving 
me clueless what to do with errors like

    Singleton conflict. Unresolved requirements: []

Installing latest Hawt.io for example works and I can login to the web 
UI. After installing ActiveMQ and getting errors, I am not able to login 
to Hawt.io anymore.

Before I start asking for help for specific errors: is there a guide or 
strategy how to find out the correct versions of features/bundles, 
necessary repos to add and features/bundles to install as prerequisites 
of the feature/bundle to install?

Thanks for any hint,

Michael



Re: Strategy for installling features in the correct versions

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi

Ahh you use hawtio. You can see that, when you install hawtio, you have a "mix" of Pax Web 7.2.x and 7.3.x.

Karaf 4.3.x itself uses Pax Web 7.3, but hawtio seems to want Pax Web 7.2 (which is bad, it should not force Pax Web version).

Hawtio should be fixed, definitely (probably hawtio did not update to Karaf 4.3.x, it’s still using Karaf 4.2.x).
Maybe we can blacklist Pax Web 7.2.x in etc/org.apache.karaf.features.xml. You can try this.

Let me check if I can fix hawtio in the mean time.

May I ask your hawtio use case ? Maybe Decanter can be alternative ?

Regards
JB

> Le 9 mars 2021 à 23:52, Michael Brohl <mb...@apache.org> a écrit :
> 
> Thanks, JB,
> 
> I now installed every feature separately in a different order after cleaning /data and removing a blacklist configuration from another :
> 
> feature:repo-add hawtio 2.13.0
> feature:repo-add camel 3.7.2
> feature:repo-add spring-legacy
> feature:repo-add activemq 5.16.1  (5.15.14)
> 
> feature:install -v activemq-broker-noweb
> feature:install -v jms
> 
> feature:install -v camel-blueprint
> feature:install -v camel-jms
> feature:install -v http
> feature:install -v camel-http
> 
> Everything works fine until the last step of installing hawtio:
> 
> feature:install -v hawtio
> 
> which causes the following error:
> 
> Adding features: hawtio/[2.13.0,2.13.0]
> Changes to perform:
>   Region: root
>     Bundles to install:
>       mvn:io.hawt/hawtio-log/2.13.0
>       mvn:io.hawt/hawtio-log-osgi/2.13.0
>       mvn:io.hawt/hawtio-osgi/2.13.0/war
>       mvn:io.hawt/hawtio-osgi-jmx/2.13.0
> mvn:org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle/1.3.2
>       mvn:org.apache.karaf.web/org.apache.karaf.web.core/4.3.0
>       mvn:org.eclipse.jdt.core.compiler/ecj/4.5.1
>       mvn:org.ops4j.pax.url/pax-url-war/2.6.2/jar/uber
>       mvn:org.ops4j.pax.url/pax-url-war/2.6.7/jar/uber
>       mvn:org.ops4j.pax.web/pax-web-deployer/7.2.19
>       mvn:org.ops4j.pax.web/pax-web-deployer/7.3.9
>       mvn:org.ops4j.pax.web/pax-web-deployer/7.3.13
>       mvn:org.ops4j.pax.web/pax-web-descriptor/7.2.19
>       mvn:org.ops4j.pax.web/pax-web-descriptor/7.3.9
>       mvn:org.ops4j.pax.web/pax-web-descriptor/7.3.13
>       mvn:org.ops4j.pax.web/pax-web-extender-war/7.2.19
>       mvn:org.ops4j.pax.web/pax-web-extender-war/7.3.9
>       mvn:org.ops4j.pax.web/pax-web-extender-war/7.3.13
>       mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/7.2.19
>       mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/7.3.9
>       mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/7.3.13
>       mvn:org.ops4j.pax.web/pax-web-jsp/7.2.19
>       mvn:org.ops4j.pax.web/pax-web-jsp/7.3.13
> Stopping bundles:
>   org.ops4j.pax.web.pax-web-jetty/7.3.9
>   org.ops4j.pax.web.pax-web-runtime/7.3.9
> Installing bundles:
>   mvn:io.hawt/hawtio-log/2.13.0
>   mvn:io.hawt/hawtio-log-osgi/2.13.0
>   mvn:io.hawt/hawtio-osgi/2.13.0/war
>   mvn:io.hawt/hawtio-osgi-jmx/2.13.0
> mvn:org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle/1.3.2
>   mvn:org.apache.karaf.web/org.apache.karaf.web.core/4.3.0
>   mvn:org.eclipse.jdt.core.compiler/ecj/4.5.1
>   mvn:org.ops4j.pax.url/pax-url-war/2.6.2/jar/uber
>   mvn:org.ops4j.pax.url/pax-url-war/2.6.7/jar/uber
>   mvn:org.ops4j.pax.web/pax-web-deployer/7.2.19
>   mvn:org.ops4j.pax.web/pax-web-deployer/7.3.9
>   mvn:org.ops4j.pax.web/pax-web-deployer/7.3.13
>   mvn:org.ops4j.pax.web/pax-web-descriptor/7.2.19
>   mvn:org.ops4j.pax.web/pax-web-descriptor/7.3.9
>   mvn:org.ops4j.pax.web/pax-web-descriptor/7.3.13
>   mvn:org.ops4j.pax.web/pax-web-extender-war/7.2.19
>   mvn:org.ops4j.pax.web/pax-web-extender-war/7.3.9
>   mvn:org.ops4j.pax.web/pax-web-extender-war/7.3.13
>   mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/7.2.19
>   mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/7.3.9
>   mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/7.3.13
>   mvn:org.ops4j.pax.web/pax-web-jsp/7.2.19
>   mvn:org.ops4j.pax.web/pax-web-jsp/7.3.13
> Refreshing bundles:
>     org.ops4j.pax.web.pax-web-jetty/7.3.9 (Should be wired to: org.ops4j.pax.web.pax-web-jsp/7.2.19 (through [org.ops4j.pax.web.pax-web-jetty/7.3.9] osgi.wiring.package; resolution:=optional; filter:="(&(osgi.wiring.package=org.apache.jasper.servlet)(version>=2.2.0)(!(version>=3.0.0)))"), org.ops4j.pax.web.pax-web-jsp/7.3.13 (through [org.ops4j.pax.web.pax-web-jetty/7.3.9] osgi.wiring.package; resolution:=optional; filter:="(&(osgi.wiring.package=org.ops4j.pax.web.jsp)(version>=7.3.9))"))
>     org.ops4j.pax.web.pax-web-runtime/7.3.9 (Should be wired to: org.ops4j.pax.web.pax-web-jsp/7.2.19 (through [org.ops4j.pax.web.pax-web-runtime/7.3.9] osgi.wiring.package; resolution:=optional; filter:="(&(osgi.wiring.package=org.apache.jasper.servlet)(version>=2.2.0)(!(version>=3.0.0)))"), org.ops4j.pax.web.pax-web-jsp/7.3.13 (through [org.ops4j.pax.web.pax-web-runtime/7.3.9] osgi.wiring.package; resolution:=optional; filter:="(&(osgi.wiring.package=org.ops4j.pax.web.jsp)(version>=7.3.9))"))
> Starting bundles:
>   org.ops4j.pax.web.pax-web-deployer/7.3.13
>   org.ops4j.pax.web.pax-web-extender-whiteboard/7.3.13
>   org.ops4j.pax.web.pax-web-extender-whiteboard/7.3.9
>   org.ops4j.pax.web.pax-web-extender-whiteboard/7.2.19
>   org.ops4j.pax.web.pax-web-descriptor/7.3.9
>   org.ops4j.pax.web.pax-web-descriptor/7.3.13
>   org.ops4j.pax.web.pax-web-descriptor/7.2.19
>   org.eclipse.jdt.core.compiler.batch/3.11.1.v20150902-1521
>   org.ops4j.pax.web.pax-web-jsp/7.2.19
>   org.ops4j.pax.web.pax-web-jsp/7.3.13
>   org.ops4j.pax.web.pax-web-extender-war/7.2.19
>   org.ops4j.pax.url.war/2.6.2
>   org.ops4j.pax.url.war/2.6.7
>   org.ops4j.pax.web.pax-web-deployer/7.2.19
>   org.ops4j.pax.web.pax-web-jetty/7.3.9
>   org.ops4j.pax.web.pax-web-runtime/7.3.9
>   org.ops4j.pax.web.pax-web-extender-war/7.3.13
>   org.apache.aries.spifly.dynamic.bundle/1.3.2
>   org.ops4j.pax.web.pax-web-deployer/7.3.9
>   org.ops4j.pax.web.pax-web-extender-war/7.3.9
>   org.apache.karaf.web.core/4.3.0
>   io.hawt.hawtio-osgi-jmx/2.13.0
>   io.hawt.hawtio-log/2.13.0
>   io.hawt.hawtio-log-osgi/2.13.0
>   io.hawt.hawtio-osgi/2.13.0
> org.apache.karaf.features.internal.util.MultiException: Error restarting bundles:
>     Singleton conflict. Unresolved requirements: []
>     at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1042)
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>     at java.lang.Thread.run(Thread.java:748)
>     Suppressed: org.osgi.framework.BundleException: Singleton conflict. Unresolved requirements: []
>         at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
>         at org.apache.felix.framework.Felix.startBundle(Felix.java:2281)
>         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
>         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
>         at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165)
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153)
>         at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1034)
>         ... 6 more
> Error executing command: Error restarting bundles:
>     Singleton conflict. Unresolved requirements: []
> karaf@root()>
> 
> and in karaf.log:
> 
> ...
> 
> 2021-03-09T23:38:36,244 | INFO  | features-3-thread-1 | FeaturesServiceImpl              | 18 - org.apache.karaf.features.core - 4.3.0 | io.hawt.hawtio-osgi-jmx/2.13.0
> 2021-03-09T23:38:36,249 | INFO  | features-3-thread-1 | FeaturesServiceImpl              | 18 - org.apache.karaf.features.core - 4.3.0 | io.hawt.hawtio-log/2.13.0
> 2021-03-09T23:38:36,250 | INFO  | features-3-thread-1 | FeaturesServiceImpl              | 18 - org.apache.karaf.features.core - 4.3.0 | io.hawt.hawtio-log-osgi/2.13.0
> 2021-03-09T23:38:36,267 | INFO  | features-3-thread-1 | FeaturesServiceImpl              | 18 - org.apache.karaf.features.core - 4.3.0 | io.hawt.hawtio-osgi/2.13.0
> 2021-03-09T23:38:36,291 | WARN  | features-3-thread-1 | Activator                        | 283 - org.ops4j.pax.web.pax-web-extender-war - 7.3.9 | Error while creating extension for bundle io.hawt.hawtio-osgi [269]
> java.lang.NoClassDefFoundError: com/sun/istack/Pool
>     at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1156) ~[?:?]
>     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:165) ~[?:?]
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_282]
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_282]
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_282]
>     at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_282]
>     at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:222) ~[?:1.8.0_282]
>     at javax.xml.bind.ContextFinder.find(ContextFinder.java:386) ~[?:1.8.0_282]
>     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641) ~[?:1.8.0_282]
>     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584) ~[?:1.8.0_282]
>     at org.ops4j.pax.web.extender.war.internal.parser.WebAppParser.parseWebXml(WebAppParser.java:954) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.parser.WebAppParser.parse(WebAppParser.java:149) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.WebObserver.createExtension(WebObserver.java:145) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.Activator.doCreateExtension(Activator.java:82) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.createExtension(AbstractExtender.java:259) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:242) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:54) ~[?:?]
>     at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:488) ~[osgi.core-7.0.0.jar:?]
>     at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:420) ~[osgi.core-7.0.0.jar:?]
>     at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[osgi.core-7.0.0.jar:?]
>     at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450) ~[osgi.core-7.0.0.jar:?]
>     at org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) ~[?:?]
>     at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) ~[?:?]
>     at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) ~[?:?]
>     at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4817) ~[?:?]
>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2336) ~[?:?]
>     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?]
>     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?]
>     at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165) ~[?:?]
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153) ~[?:?]
>     at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1034) ~[?:?]
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?]
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_282]
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_282]
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_282]
>     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
> Caused by: java.lang.ClassNotFoundException: com.sun.istack.Pool not found by org.apache.servicemix.bundles.jaxb-runtime [247]
>     at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1597) ~[?:?]
>     at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79) ~[?:?]
>     at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1982) ~[?:?]
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_282]
>     ... 37 more
> 2021-03-09T23:38:36,301 | WARN  | features-3-thread-1 | Activator                        | 282 - org.ops4j.pax.web.pax-web-extender-war - 7.2.19 | Error while creating extension for bundle io.hawt.hawtio-osgi [269]
> java.lang.NoClassDefFoundError: com/sun/istack/Pool
>     at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1156) ~[?:?]
>     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:165) ~[?:?]
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_282]
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_282]
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_282]
>     at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_282]
>     at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:222) ~[?:1.8.0_282]
>     at javax.xml.bind.ContextFinder.find(ContextFinder.java:386) ~[?:1.8.0_282]
>     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641) ~[?:1.8.0_282]
>     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584) ~[?:1.8.0_282]
>     at org.ops4j.pax.web.extender.war.internal.parser.WebAppParser.parseWebXml(WebAppParser.java:955) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.parser.WebAppParser.parse(WebAppParser.java:149) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.WebObserver.createExtension(WebObserver.java:145) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.Activator.doCreateExtension(Activator.java:82) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.createExtension(AbstractExtender.java:259) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:242) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:54) ~[?:?]
>     at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:488) ~[osgi.core-7.0.0.jar:?]
>     at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:420) ~[osgi.core-7.0.0.jar:?]
>     at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[osgi.core-7.0.0.jar:?]
>     at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450) ~[osgi.core-7.0.0.jar:?]
>     at org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) ~[?:?]
>     at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) ~[?:?]
>     at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) ~[?:?]
>     at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4817) ~[?:?]
>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2336) ~[?:?]
>     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?]
>     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?]
>     at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165) ~[?:?]
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153) ~[?:?]
>     at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1034) ~[?:?]
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?]
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_282]
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_282]
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_282]
>     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
> Caused by: java.lang.ClassNotFoundException: com.sun.istack.Pool not found by org.apache.servicemix.bundles.jaxb-runtime [247]
>     at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1597) ~[?:?]
>     at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79) ~[?:?]
>     at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1982) ~[?:?]
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_282]
>     ... 37 more
> 2021-03-09T23:38:36,307 | WARN  | features-3-thread-1 | Activator                        | 284 - org.ops4j.pax.web.pax-web-extender-war - 7.3.13 | Error while creating extension for bundle io.hawt.hawtio-osgi [269]
> java.lang.NoClassDefFoundError: com/sun/istack/Pool
>     at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1156) ~[?:?]
>     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:165) ~[?:?]
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_282]
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_282]
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_282]
>     at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_282]
>     at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:222) ~[?:1.8.0_282]
>     at javax.xml.bind.ContextFinder.find(ContextFinder.java:386) ~[?:1.8.0_282]
>     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641) ~[?:1.8.0_282]
>     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584) ~[?:1.8.0_282]
>     at org.ops4j.pax.web.extender.war.internal.parser.WebAppParser.parseWebXml(WebAppParser.java:954) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.parser.WebAppParser.parse(WebAppParser.java:149) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.WebObserver.createExtension(WebObserver.java:145) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.Activator.doCreateExtension(Activator.java:82) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.createExtension(AbstractExtender.java:259) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:242) ~[?:?]
>     at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:54) ~[?:?]
>     at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:488) ~[osgi.core-7.0.0.jar:?]
>     at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:420) ~[osgi.core-7.0.0.jar:?]
>     at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[osgi.core-7.0.0.jar:?]
>     at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450) ~[osgi.core-7.0.0.jar:?]
>     at org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) ~[?:?]
>     at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) ~[?:?]
>     at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) ~[?:?]
>     at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4817) ~[?:?]
>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2336) ~[?:?]
>     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?]
>     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?]
>     at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165) ~[?:?]
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153) ~[?:?]
>     at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1034) ~[?:?]
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?]
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_282]
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_282]
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_282]
>     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
> Caused by: java.lang.ClassNotFoundException: com.sun.istack.Pool not found by org.apache.servicemix.bundles.jaxb-runtime [247]
>     at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1597) ~[?:?]
>     at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79) ~[?:?]
>     at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1982) ~[?:?]
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_282]
>     ... 37 more
> 2021-03-09T23:38:36,312 | ERROR | Karaf local console user karaf | ShellUtil                        | 43 - org.apache.karaf.shell.core - 4.3.0 | Exception caught while executing command
> org.apache.karaf.features.internal.util.MultiException: Error restarting bundles:
>     Singleton conflict. Unresolved requirements: []
>     at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1042) ~[?:?]
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?]
>     at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_282]
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_282]
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_282]
>     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
>     Suppressed: org.osgi.framework.BundleException: Singleton conflict. Unresolved requirements: []
>         at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368) ~[?:?]
>         at org.apache.felix.framework.Felix.startBundle(Felix.java:2281) ~[?:?]
>         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?]
>         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?]
>         at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165) ~[?:?]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153) ~[?:?]
>         at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1034) ~[?:?]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_282]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_282]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_282]
>         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
> 
> 
> Installation is done according to https://hawt.io/docs/get-started/#deploying-on-apache-karaf, there is no additional dependency listed for Karaf.
> 
> Regards,
> 
> Michael
> 
> 
> Am 09.03.21 um 21:45 schrieb Jean-Baptiste Onofre:
>> You still have the same problem.
>> 
>> When you do feature:install camel-blueprint camel-jms camel-http, you can see that jline bundles will be uninstalled, so the Karaf shell will be uninstall.
>> 
>> Can you please do:
>> 
>> Feature:install -v camel-blueprint
>> Feature:install -v camel-jms
>> Feature:install http
>> Feature:install camel-http
>> 
>> Instead of providing all in a row ?
>> 
>> Do you have anything else already installed ?
>> 
>> Thanks,
>> Regards
>> JB


Re: Strategy for installling features in the correct versions

Posted by Michael Brohl <mb...@apache.org>.
Thanks, JB,

I now installed every feature separately in a different order after 
cleaning /data and removing a blacklist configuration from another :

feature:repo-add hawtio 2.13.0
feature:repo-add camel 3.7.2
feature:repo-add spring-legacy
feature:repo-add activemq 5.16.1  (5.15.14)

feature:install -v activemq-broker-noweb
feature:install -v jms

feature:install -v camel-blueprint
feature:install -v camel-jms
feature:install -v http
feature:install -v camel-http

Everything works fine until the last step of installing hawtio:

feature:install -v hawtio

which causes the following error:

Adding features: hawtio/[2.13.0,2.13.0]
Changes to perform:
   Region: root
     Bundles to install:
       mvn:io.hawt/hawtio-log/2.13.0
       mvn:io.hawt/hawtio-log-osgi/2.13.0
       mvn:io.hawt/hawtio-osgi/2.13.0/war
       mvn:io.hawt/hawtio-osgi-jmx/2.13.0
mvn:org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle/1.3.2
       mvn:org.apache.karaf.web/org.apache.karaf.web.core/4.3.0
       mvn:org.eclipse.jdt.core.compiler/ecj/4.5.1
       mvn:org.ops4j.pax.url/pax-url-war/2.6.2/jar/uber
       mvn:org.ops4j.pax.url/pax-url-war/2.6.7/jar/uber
       mvn:org.ops4j.pax.web/pax-web-deployer/7.2.19
       mvn:org.ops4j.pax.web/pax-web-deployer/7.3.9
       mvn:org.ops4j.pax.web/pax-web-deployer/7.3.13
       mvn:org.ops4j.pax.web/pax-web-descriptor/7.2.19
       mvn:org.ops4j.pax.web/pax-web-descriptor/7.3.9
       mvn:org.ops4j.pax.web/pax-web-descriptor/7.3.13
       mvn:org.ops4j.pax.web/pax-web-extender-war/7.2.19
       mvn:org.ops4j.pax.web/pax-web-extender-war/7.3.9
       mvn:org.ops4j.pax.web/pax-web-extender-war/7.3.13
       mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/7.2.19
       mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/7.3.9
       mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/7.3.13
       mvn:org.ops4j.pax.web/pax-web-jsp/7.2.19
       mvn:org.ops4j.pax.web/pax-web-jsp/7.3.13
Stopping bundles:
   org.ops4j.pax.web.pax-web-jetty/7.3.9
   org.ops4j.pax.web.pax-web-runtime/7.3.9
Installing bundles:
   mvn:io.hawt/hawtio-log/2.13.0
   mvn:io.hawt/hawtio-log-osgi/2.13.0
   mvn:io.hawt/hawtio-osgi/2.13.0/war
   mvn:io.hawt/hawtio-osgi-jmx/2.13.0
mvn:org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle/1.3.2
   mvn:org.apache.karaf.web/org.apache.karaf.web.core/4.3.0
   mvn:org.eclipse.jdt.core.compiler/ecj/4.5.1
   mvn:org.ops4j.pax.url/pax-url-war/2.6.2/jar/uber
   mvn:org.ops4j.pax.url/pax-url-war/2.6.7/jar/uber
   mvn:org.ops4j.pax.web/pax-web-deployer/7.2.19
   mvn:org.ops4j.pax.web/pax-web-deployer/7.3.9
   mvn:org.ops4j.pax.web/pax-web-deployer/7.3.13
   mvn:org.ops4j.pax.web/pax-web-descriptor/7.2.19
   mvn:org.ops4j.pax.web/pax-web-descriptor/7.3.9
   mvn:org.ops4j.pax.web/pax-web-descriptor/7.3.13
   mvn:org.ops4j.pax.web/pax-web-extender-war/7.2.19
   mvn:org.ops4j.pax.web/pax-web-extender-war/7.3.9
   mvn:org.ops4j.pax.web/pax-web-extender-war/7.3.13
   mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/7.2.19
   mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/7.3.9
   mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/7.3.13
   mvn:org.ops4j.pax.web/pax-web-jsp/7.2.19
   mvn:org.ops4j.pax.web/pax-web-jsp/7.3.13
Refreshing bundles:
     org.ops4j.pax.web.pax-web-jetty/7.3.9 (Should be wired to: 
org.ops4j.pax.web.pax-web-jsp/7.2.19 (through 
[org.ops4j.pax.web.pax-web-jetty/7.3.9] osgi.wiring.package; 
resolution:=optional; 
filter:="(&(osgi.wiring.package=org.apache.jasper.servlet)(version>=2.2.0)(!(version>=3.0.0)))"), 
org.ops4j.pax.web.pax-web-jsp/7.3.13 (through 
[org.ops4j.pax.web.pax-web-jetty/7.3.9] osgi.wiring.package; 
resolution:=optional; 
filter:="(&(osgi.wiring.package=org.ops4j.pax.web.jsp)(version>=7.3.9))"))
     org.ops4j.pax.web.pax-web-runtime/7.3.9 (Should be wired to: 
org.ops4j.pax.web.pax-web-jsp/7.2.19 (through 
[org.ops4j.pax.web.pax-web-runtime/7.3.9] osgi.wiring.package; 
resolution:=optional; 
filter:="(&(osgi.wiring.package=org.apache.jasper.servlet)(version>=2.2.0)(!(version>=3.0.0)))"), 
org.ops4j.pax.web.pax-web-jsp/7.3.13 (through 
[org.ops4j.pax.web.pax-web-runtime/7.3.9] osgi.wiring.package; 
resolution:=optional; 
filter:="(&(osgi.wiring.package=org.ops4j.pax.web.jsp)(version>=7.3.9))"))
Starting bundles:
   org.ops4j.pax.web.pax-web-deployer/7.3.13
   org.ops4j.pax.web.pax-web-extender-whiteboard/7.3.13
   org.ops4j.pax.web.pax-web-extender-whiteboard/7.3.9
   org.ops4j.pax.web.pax-web-extender-whiteboard/7.2.19
   org.ops4j.pax.web.pax-web-descriptor/7.3.9
   org.ops4j.pax.web.pax-web-descriptor/7.3.13
   org.ops4j.pax.web.pax-web-descriptor/7.2.19
   org.eclipse.jdt.core.compiler.batch/3.11.1.v20150902-1521
   org.ops4j.pax.web.pax-web-jsp/7.2.19
   org.ops4j.pax.web.pax-web-jsp/7.3.13
   org.ops4j.pax.web.pax-web-extender-war/7.2.19
   org.ops4j.pax.url.war/2.6.2
   org.ops4j.pax.url.war/2.6.7
   org.ops4j.pax.web.pax-web-deployer/7.2.19
   org.ops4j.pax.web.pax-web-jetty/7.3.9
   org.ops4j.pax.web.pax-web-runtime/7.3.9
   org.ops4j.pax.web.pax-web-extender-war/7.3.13
   org.apache.aries.spifly.dynamic.bundle/1.3.2
   org.ops4j.pax.web.pax-web-deployer/7.3.9
   org.ops4j.pax.web.pax-web-extender-war/7.3.9
   org.apache.karaf.web.core/4.3.0
   io.hawt.hawtio-osgi-jmx/2.13.0
   io.hawt.hawtio-log/2.13.0
   io.hawt.hawtio-log-osgi/2.13.0
   io.hawt.hawtio-osgi/2.13.0
org.apache.karaf.features.internal.util.MultiException: Error restarting 
bundles:
     Singleton conflict. Unresolved requirements: []
     at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1042)
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     at java.lang.Thread.run(Thread.java:748)
     Suppressed: org.osgi.framework.BundleException: Singleton conflict. 
Unresolved requirements: []
         at 
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
         at org.apache.felix.framework.Felix.startBundle(Felix.java:2281)
         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
         at 
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165)
         at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153)
         at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1034)
         ... 6 more
Error executing command: Error restarting bundles:
     Singleton conflict. Unresolved requirements: []
karaf@root()>

and in karaf.log:

...

2021-03-09T23:38:36,244 | INFO  | features-3-thread-1 | 
FeaturesServiceImpl              | 18 - org.apache.karaf.features.core - 
4.3.0 | io.hawt.hawtio-osgi-jmx/2.13.0
2021-03-09T23:38:36,249 | INFO  | features-3-thread-1 | 
FeaturesServiceImpl              | 18 - org.apache.karaf.features.core - 
4.3.0 | io.hawt.hawtio-log/2.13.0
2021-03-09T23:38:36,250 | INFO  | features-3-thread-1 | 
FeaturesServiceImpl              | 18 - org.apache.karaf.features.core - 
4.3.0 | io.hawt.hawtio-log-osgi/2.13.0
2021-03-09T23:38:36,267 | INFO  | features-3-thread-1 | 
FeaturesServiceImpl              | 18 - org.apache.karaf.features.core - 
4.3.0 | io.hawt.hawtio-osgi/2.13.0
2021-03-09T23:38:36,291 | WARN  | features-3-thread-1 | 
Activator                        | 283 - 
org.ops4j.pax.web.pax-web-extender-war - 7.3.9 | Error while creating 
extension for bundle io.hawt.hawtio-osgi [269]
java.lang.NoClassDefFoundError: com/sun/istack/Pool
     at 
com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1156) 
~[?:?]
     at 
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:165) 
~[?:?]
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_282]
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_282]
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
~[?:1.8.0_282]
     at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_282]
     at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:222) 
~[?:1.8.0_282]
     at javax.xml.bind.ContextFinder.find(ContextFinder.java:386) 
~[?:1.8.0_282]
     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641) 
~[?:1.8.0_282]
     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584) 
~[?:1.8.0_282]
     at 
org.ops4j.pax.web.extender.war.internal.parser.WebAppParser.parseWebXml(WebAppParser.java:954) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.parser.WebAppParser.parse(WebAppParser.java:149) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.WebObserver.createExtension(WebObserver.java:145) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.Activator.doCreateExtension(Activator.java:82) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.createExtension(AbstractExtender.java:259) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:242) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:54) 
~[?:?]
     at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:488) 
~[osgi.core-7.0.0.jar:?]
     at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:420) 
~[osgi.core-7.0.0.jar:?]
     at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) 
~[osgi.core-7.0.0.jar:?]
     at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450) 
~[osgi.core-7.0.0.jar:?]
     at 
org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) 
~[?:?]
     at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) 
~[?:?]
     at 
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) 
~[?:?]
     at 
org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4817) ~[?:?]
     at org.apache.felix.framework.Felix.startBundle(Felix.java:2336) ~[?:?]
     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) 
~[?:?]
     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1034) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) 
~[?:?]
     at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[?:1.8.0_282]
     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[?:1.8.0_282]
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:1.8.0_282]
     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
Caused by: java.lang.ClassNotFoundException: com.sun.istack.Pool not 
found by org.apache.servicemix.bundles.jaxb-runtime [247]
     at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1597) 
~[?:?]
     at 
org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79) 
~[?:?]
     at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1982) 
~[?:?]
     at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_282]
     ... 37 more
2021-03-09T23:38:36,301 | WARN  | features-3-thread-1 | 
Activator                        | 282 - 
org.ops4j.pax.web.pax-web-extender-war - 7.2.19 | Error while creating 
extension for bundle io.hawt.hawtio-osgi [269]
java.lang.NoClassDefFoundError: com/sun/istack/Pool
     at 
com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1156) 
~[?:?]
     at 
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:165) 
~[?:?]
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_282]
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_282]
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
~[?:1.8.0_282]
     at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_282]
     at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:222) 
~[?:1.8.0_282]
     at javax.xml.bind.ContextFinder.find(ContextFinder.java:386) 
~[?:1.8.0_282]
     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641) 
~[?:1.8.0_282]
     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584) 
~[?:1.8.0_282]
     at 
org.ops4j.pax.web.extender.war.internal.parser.WebAppParser.parseWebXml(WebAppParser.java:955) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.parser.WebAppParser.parse(WebAppParser.java:149) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.WebObserver.createExtension(WebObserver.java:145) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.Activator.doCreateExtension(Activator.java:82) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.createExtension(AbstractExtender.java:259) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:242) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:54) 
~[?:?]
     at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:488) 
~[osgi.core-7.0.0.jar:?]
     at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:420) 
~[osgi.core-7.0.0.jar:?]
     at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) 
~[osgi.core-7.0.0.jar:?]
     at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450) 
~[osgi.core-7.0.0.jar:?]
     at 
org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) 
~[?:?]
     at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) 
~[?:?]
     at 
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) 
~[?:?]
     at 
org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4817) ~[?:?]
     at org.apache.felix.framework.Felix.startBundle(Felix.java:2336) ~[?:?]
     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) 
~[?:?]
     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1034) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) 
~[?:?]
     at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[?:1.8.0_282]
     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[?:1.8.0_282]
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:1.8.0_282]
     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
Caused by: java.lang.ClassNotFoundException: com.sun.istack.Pool not 
found by org.apache.servicemix.bundles.jaxb-runtime [247]
     at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1597) 
~[?:?]
     at 
org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79) 
~[?:?]
     at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1982) 
~[?:?]
     at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_282]
     ... 37 more
2021-03-09T23:38:36,307 | WARN  | features-3-thread-1 | 
Activator                        | 284 - 
org.ops4j.pax.web.pax-web-extender-war - 7.3.13 | Error while creating 
extension for bundle io.hawt.hawtio-osgi [269]
java.lang.NoClassDefFoundError: com/sun/istack/Pool
     at 
com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1156) 
~[?:?]
     at 
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:165) 
~[?:?]
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_282]
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_282]
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
~[?:1.8.0_282]
     at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_282]
     at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:222) 
~[?:1.8.0_282]
     at javax.xml.bind.ContextFinder.find(ContextFinder.java:386) 
~[?:1.8.0_282]
     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641) 
~[?:1.8.0_282]
     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584) 
~[?:1.8.0_282]
     at 
org.ops4j.pax.web.extender.war.internal.parser.WebAppParser.parseWebXml(WebAppParser.java:954) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.parser.WebAppParser.parse(WebAppParser.java:149) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.WebObserver.createExtension(WebObserver.java:145) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.Activator.doCreateExtension(Activator.java:82) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.createExtension(AbstractExtender.java:259) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:242) 
~[?:?]
     at 
org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:54) 
~[?:?]
     at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:488) 
~[osgi.core-7.0.0.jar:?]
     at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:420) 
~[osgi.core-7.0.0.jar:?]
     at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) 
~[osgi.core-7.0.0.jar:?]
     at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450) 
~[osgi.core-7.0.0.jar:?]
     at 
org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) 
~[?:?]
     at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) 
~[?:?]
     at 
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) 
~[?:?]
     at 
org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4817) ~[?:?]
     at org.apache.felix.framework.Felix.startBundle(Felix.java:2336) ~[?:?]
     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) 
~[?:?]
     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1034) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) 
~[?:?]
     at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[?:1.8.0_282]
     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[?:1.8.0_282]
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:1.8.0_282]
     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
Caused by: java.lang.ClassNotFoundException: com.sun.istack.Pool not 
found by org.apache.servicemix.bundles.jaxb-runtime [247]
     at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1597) 
~[?:?]
     at 
org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79) 
~[?:?]
     at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1982) 
~[?:?]
     at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_282]
     ... 37 more
2021-03-09T23:38:36,312 | ERROR | Karaf local console user karaf | 
ShellUtil                        | 43 - org.apache.karaf.shell.core - 
4.3.0 | Exception caught while executing command
org.apache.karaf.features.internal.util.MultiException: Error restarting 
bundles:
     Singleton conflict. Unresolved requirements: []
     at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1042) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) 
~[?:?]
     at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) 
~[?:?]
     at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
~[?:1.8.0_282]
     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
~[?:1.8.0_282]
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
~[?:1.8.0_282]
     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
     Suppressed: org.osgi.framework.BundleException: Singleton conflict. 
Unresolved requirements: []
         at 
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368) 
~[?:?]
         at 
org.apache.felix.framework.Felix.startBundle(Felix.java:2281) ~[?:?]
         at 
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?]
         at 
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?]
         at 
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165) 
~[?:?]
         at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153) 
~[?:?]
         at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1034) 
~[?:?]
         at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) 
~[?:?]
         at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) 
~[?:?]
         at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
~[?:1.8.0_282]
         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
~[?:1.8.0_282]
         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
~[?:1.8.0_282]
         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]


Installation is done according to 
https://hawt.io/docs/get-started/#deploying-on-apache-karaf, there is no 
additional dependency listed for Karaf.

Regards,

Michael


Am 09.03.21 um 21:45 schrieb Jean-Baptiste Onofre:
> You still have the same problem.
>
> When you do feature:install camel-blueprint camel-jms camel-http, you can see that jline bundles will be uninstalled, so the Karaf shell will be uninstall.
>
> Can you please do:
>
> Feature:install -v camel-blueprint
> Feature:install -v camel-jms
> Feature:install http
> Feature:install camel-http
>
> Instead of providing all in a row ?
>
> Do you have anything else already installed ?
>
> Thanks,
> Regards
> JB

Re: Strategy for installling features in the correct versions

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
You still have the same problem.

When you do feature:install camel-blueprint camel-jms camel-http, you can see that jline bundles will be uninstalled, so the Karaf shell will be uninstall.

Can you please do:

Feature:install -v camel-blueprint
Feature:install -v camel-jms
Feature:install http
Feature:install camel-http

Instead of providing all in a row ?

Do you have anything else already installed ?

Thanks,
Regards
JB

> Le 9 mars 2021 à 21:33, Michael Brohl <mb...@apache.org> a écrit :
> 
> Same outcome with Camel 3.7.2 LTS and leaving out camel-stream as well (after clearing /data):
> 
> karaf@root()> feature:install -v -t camel-blueprint camel-jms camel-http
> Adding features: camel-blueprint/[3.7.2,3.7.2],camel-http/[3.7.2,3.7.2],camel-jms/[3.7.2,3.7.2]
> Changes to perform:
>   Region: root
>     Bundles to uninstall:
>       org.jline.builtins/3.16.0
>       org.jline.reader/3.16.0
>       org.jline.terminal/3.16.0
>       org.jline.terminal-jansi/3.16.0
>     Bundles to install:
>       mvn:com.github.ben-manes.caffeine/caffeine/2.8.8
>       mvn:javax.servlet/javax.servlet-api/3.1.0
> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1
> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.3.2
> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.10.3
> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0
> mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.2.0
> mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.core/1.2.0
>       mvn:org.apache.aries.proxy/org.apache.aries.proxy/1.1.9
>       mvn:org.apache.camel/camel-api/3.7.2
>       mvn:org.apache.camel/camel-attachments/3.7.2
>       mvn:org.apache.camel/camel-base/3.7.2
>       mvn:org.apache.camel/camel-base-engine/3.7.2
>       mvn:org.apache.camel/camel-bean/3.7.2
>       mvn:org.apache.camel/camel-browse/3.7.2
>       mvn:org.apache.camel/camel-caffeine-lrucache/3.7.2
>       mvn:org.apache.camel/camel-cloud/3.7.2
>       mvn:org.apache.camel/camel-cluster/3.7.2
>       mvn:org.apache.camel/camel-controlbus/3.7.2
>       mvn:org.apache.camel/camel-core-catalog/3.7.2
>       mvn:org.apache.camel/camel-core-engine/3.7.2
>       mvn:org.apache.camel/camel-core-languages/3.7.2
>       mvn:org.apache.camel/camel-core-model/3.7.2
>       mvn:org.apache.camel/camel-core-processor/3.7.2
>       mvn:org.apache.camel/camel-core-reifier/3.7.2
>       mvn:org.apache.camel/camel-core-xml/3.7.2
>       mvn:org.apache.camel/camel-dataformat/3.7.2
>       mvn:org.apache.camel/camel-dataset/3.7.2
>       mvn:org.apache.camel/camel-direct/3.7.2
>       mvn:org.apache.camel/camel-directvm/3.7.2
>       mvn:org.apache.camel/camel-file/3.7.2
>       mvn:org.apache.camel/camel-health/3.7.2
>       mvn:org.apache.camel/camel-http/3.7.2
>       mvn:org.apache.camel/camel-http-base/3.7.2
>       mvn:org.apache.camel/camel-http-common/3.7.2
>       mvn:org.apache.camel/camel-jms/3.7.2
>       mvn:org.apache.camel/camel-language/3.7.2
>       mvn:org.apache.camel/camel-log/3.7.2
>       mvn:org.apache.camel/camel-main/3.7.2
>       mvn:org.apache.camel/camel-management/3.7.2
>       mvn:org.apache.camel/camel-management-api/3.7.2
>       mvn:org.apache.camel/camel-mock/3.7.2
>       mvn:org.apache.camel/camel-ref/3.7.2
>       mvn:org.apache.camel/camel-rest/3.7.2
>       mvn:org.apache.camel/camel-saga/3.7.2
>       mvn:org.apache.camel/camel-scheduler/3.7.2
>       mvn:org.apache.camel/camel-seda/3.7.2
>       mvn:org.apache.camel/camel-stub/3.7.2
>       mvn:org.apache.camel/camel-support/3.7.2
>       mvn:org.apache.camel/camel-timer/3.7.2
>       mvn:org.apache.camel/camel-tooling-model/3.7.2
>       mvn:org.apache.camel/camel-util/3.7.2
>       mvn:org.apache.camel/camel-util-json/3.7.2
>       mvn:org.apache.camel/camel-validator/3.7.2
>       mvn:org.apache.camel/camel-vm/3.7.2
>       mvn:org.apache.camel/camel-xml-jaxb/3.7.2
>       mvn:org.apache.camel/camel-xml-jaxp/3.7.2
>       mvn:org.apache.camel/camel-xpath/3.7.2
>       mvn:org.apache.camel/camel-xslt/3.7.2
>       mvn:org.apache.camel.karaf/camel-blueprint/3.7.2
>       mvn:org.apache.camel.karaf/camel-commands-core/3.7.2
>       mvn:org.apache.camel.karaf/camel-core-osgi/3.7.2
>       mvn:org.apache.camel.karaf/camel-karaf-commands/3.7.2
>       mvn:commons-pool/commons-pool/1.6
> mvn:org.apache.geronimo.specs/geronimo-jms_2.0_spec/1.0-alpha-2
>       mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
>       mvn:org.apache.httpcomponents/httpclient-osgi/4.5.13
>       mvn:org.apache.httpcomponents/httpcore-osgi/4.4.14
> mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.blueprintstate/4.3.1-SNAPSHOT
> mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.blueprint/4.3.0
> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/4.3.1-SNAPSHOT
> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/4.3.1-SNAPSHOT
> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/4.3.1-SNAPSHOT
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_6
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-runtime/2.3.1_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0
>       mvn:org.jline/jline-builtins/3.19.0
>       mvn:org.jline/jline-reader/3.19.0
>       mvn:org.jline/jline-terminal/3.19.0
>       mvn:org.jline/jline-terminal-jansi/3.19.0
>       mvn:org.ow2.asm/asm/9.1
>       mvn:org.ow2.asm/asm-commons/9.1
>       mvn:org.ow2.asm/asm-tree/9.1
>       mvn:org.ow2.asm/asm-analysis/9.1
>       mvn:org.ow2.asm/asm-util/9.1
>       mvn:org.codehaus.woodstox/stax2-api/3.1.4
>       mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
>   Bundles to refresh:
>     org.apache.karaf.bundle.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.config.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.deployer.kar/4.3.0 (Wired to org.apache.karaf.kar.core/4.3.0 which is being refreshed)
>     org.apache.karaf.diagnostic.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.event/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.features.command/4.3.0 (Wired to org.jline.terminal/3.16.0 which is being refreshed)
>     org.apache.karaf.instance.core/4.3.0 (Wired to org.apache.karaf.features.command/4.3.0 which is being refreshed)
>     org.apache.karaf.jaas.command/4.3.0 (Should be wired to: org.apache.karaf.jaas.command/4.3.1.SNAPSHOT (through [org.apache.karaf.jaas.command/4.3.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.karaf.jaas.command.completers)(version>=4.3.0)(!(version>=5.0.0)))"))
>     org.apache.karaf.kar.core/4.3.0 (Wired to org.apache.karaf.features.command/4.3.0 which is being refreshed)
>     org.apache.karaf.log.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.package.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.service.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.shell.commands/4.3.0 (Wired to org.jline.terminal/3.16.0 which is being refreshed)
>     org.apache.karaf.shell.core/4.3.0 (Wired to org.jline.builtins/3.16.0 which is being refreshed)
>     org.apache.karaf.shell.ssh/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.system.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.jline.builtins/3.16.0 (Bundle will be uninstalled)
>     org.jline.reader/3.16.0 (Bundle will be uninstalled)
>     org.jline.terminal/3.16.0 (Bundle will be uninstalled)
>     org.jline.terminal-jansi/3.16.0 (Bundle will be uninstalled)
> 
> karaf@root()> feature:install camel-blueprint camel-jms camel-http
> Error executing command: Method org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; is abstract
> /Applications/Development/apache-karaf-4.3.0 
> 
> 
> Regards,
> 
> Michael
> 
> 
> 
> Am 09.03.21 um 21:14 schrieb Michael Brohl:
>> No constraint, I wanted to use the most recent versions but got stuck there as well.
>> 
>> I then found examples using this version and just tried. I'm going to use the most recent versions now and try with your tips to get it to work.
>> 
>> Thanks,
>> 
>> Michael
>> 
>> 
>> Am 09.03.21 um 20:58 schrieb Jean-Baptiste Onofre:
>>> Actually, it’s not the whole Karaf runtime which stop or restart: it’s the shell part.
>>> 
>>> The problem is that you install camel-stream not aligned in term of jline, and so the karaf shell is refreshed due to jline.
>>> 
>>> Do you have a constraint to use a so old Camel version ??!!!
>>> 
>>> Regards
>>> JB
>>> 
>>>> Le 9 mars 2021 à 19:03, Michael Brohl <mb...@apache.org> a écrit :
>>>> 
>>>> Ok, I think I will provide the first example for the difficulties I face.
>>>> 
>>>> I removed the /data folder and restarted Karaf, then:
>>>> 
>>>> karaf@root()> feature:install -v -t camel-blueprint camel-stream camel-blueprint camel-jms camel-http camel-saxon
>>>> Adding features: camel-http/[2.24.1,2.24.1],camel-jms/[2.24.1,2.24.1],camel-blueprint/[2.24.1,2.24.1],camel-saxon/[2.24.1,2.24.1],camel-stream/[2.24.1,2.24.1]
>>>> Changes to perform:
>>>>    Region: root
>>>>      Bundles to uninstall:
>>>>        org.jline.builtins/3.16.0
>>>>        org.jline.reader/3.16.0
>>>>        org.jline.terminal/3.16.0
>>>>        org.jline.terminal-jansi/3.16.0
>>>>      Bundles to install:
>>>>        mvn:javax.servlet/javax.servlet-api/3.1.0
>>>> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1
>>>> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.3.2
>>>> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.10.3
>>>> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0 
>>>> mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.2.0
>>>> mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.core/1.2.0
>>>>        mvn:org.apache.aries.proxy/org.apache.aries.proxy/1.1.9
>>>>        mvn:org.apache.camel/camel-blueprint/2.24.1
>>>>        mvn:org.apache.camel/camel-commands-core/2.24.1
>>>>        mvn:org.apache.camel/camel-core/2.24.1
>>>>        mvn:org.apache.camel/camel-http/2.24.1
>>>>        mvn:org.apache.camel/camel-http-common/2.24.1
>>>>        mvn:org.apache.camel/camel-jms/2.24.1
>>>>        mvn:org.apache.camel/camel-saxon/2.24.1
>>>>        mvn:org.apache.camel/camel-stream/2.24.1
>>>>        mvn:org.apache.camel.karaf/camel-karaf-commands/2.24.1
>>>>        mvn:commons-codec/commons-codec/1.11
>>>>        mvn:commons-pool/commons-pool/1.6
>>>> mvn:org.apache.geronimo.specs/geronimo-jms_2.0_spec/1.0-alpha-2
>>>> mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
>>>> mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.blueprintstate/4.3.1-SNAPSHOT 
>>>> mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.blueprint/4.3.0
>>>> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/4.3.1-SNAPSHOT
>>>> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/4.3.1-SNAPSHOT
>>>> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/4.3.1-SNAPSHOT
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_6 
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient/3.1_7 
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.11_1 
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/9.9.0-2_1 
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/5.2.13.RELEASE_1 
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/5.2.13.RELEASE_1 
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/5.2.13.RELEASE_1 
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/5.2.13.RELEASE_1 
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/5.2.13.RELEASE_1 
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/5.2.13.RELEASE_1 
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/5.2.13.RELEASE_1 
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/5.2.13.RELEASE_1 
>>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5 
>>>> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0 
>>>>        mvn:org.jline/jline-builtins/3.19.0
>>>>        mvn:org.jline/jline-reader/3.19.0
>>>>        mvn:org.jline/jline-terminal/3.19.0
>>>>        mvn:org.jline/jline-terminal-jansi/3.19.0
>>>>        mvn:org.ow2.asm/asm/9.1
>>>>        mvn:org.ow2.asm/asm-commons/9.1
>>>>        mvn:org.ow2.asm/asm-tree/9.1
>>>>        mvn:org.ow2.asm/asm-analysis/9.1
>>>>        mvn:org.ow2.asm/asm-util/9.1
>>>>        mvn:org.codehaus.woodstox/stax2-api/3.1.4
>>>>        mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
>>>>    Bundles to refresh:
>>>>      org.apache.karaf.bundle.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>>      org.apache.karaf.config.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>>      org.apache.karaf.deployer.kar/4.3.0 (Wired to org.apache.karaf.kar.core/4.3.0 which is being refreshed)
>>>>      org.apache.karaf.diagnostic.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>>      org.apache.karaf.event/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>>      org.apache.karaf.features.command/4.3.0 (Wired to org.jline.terminal/3.16.0 which is being refreshed)
>>>>      org.apache.karaf.instance.core/4.3.0 (Wired to org.apache.karaf.features.command/4.3.0 which is being refreshed)
>>>>      org.apache.karaf.jaas.command/4.3.0 (Should be wired to: org.apache.karaf.jaas.command/4.3.1.SNAPSHOT (through [org.apache.karaf.jaas.command/4.3.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.karaf.jaas.command.completers)(version>=4.3.0)(!(version>=5.0.0)))"))
>>>>      org.apache.karaf.kar.core/4.3.0 (Wired to org.apache.karaf.features.command/4.3.0 which is being refreshed)
>>>>      org.apache.karaf.log.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>>      org.apache.karaf.package.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>>      org.apache.karaf.service.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>>      org.apache.karaf.shell.commands/4.3.0 (Wired to org.jline.terminal/3.16.0 which is being refreshed)
>>>>      org.apache.karaf.shell.core/4.3.0 (Wired to org.jline.builtins/3.16.0 which is being refreshed)
>>>>      org.apache.karaf.shell.ssh/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>>      org.apache.karaf.system.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>>      org.jline.builtins/3.16.0 (Bundle will be uninstalled)
>>>>      org.jline.reader/3.16.0 (Bundle will be uninstalled)
>>>>      org.jline.terminal/3.16.0 (Bundle will be uninstalled)
>>>>      org.jline.terminal-jansi/3.16.0 (Bundle will be uninstalled)
>>>> 
>>>> When I install without -t -v , Karaf crashes and I'm in my shell:
>>>> 
>>>> karaf@root()> feature:install camel-blueprint camel-stream camel-blueprint camel-jms camel-http camel-saxon
>>>> Error executing command: Method org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; is abstract
>>>> /Applications/Development/apache-karaf-4.3.0 
>>>> 
>>>> Karaf cannot be startet again:
>>>> 
>>>> /Applications/Development/apache-karaf-4.3.0  ./bin/karaf
>>>>          __ __                  ____
>>>>         / //_/____ __________ _/ __/
>>>>        / ,<  / __ `/ ___/ __ `/ /_
>>>>       / /| |/ /_/ / /  / /_/ / __/
>>>>      /_/ |_|\__,_/_/   \__,_/_/
>>>> 
>>>>    Apache Karaf (4.3.0)
>>>> 
>>>> Hit '<tab>' for a list of available commands
>>>> and '[cmd] --help' for help on a specific command.
>>>> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>>>> 
>>>> Error executing command: Method org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; is abstract
>>>> /Applications/Development/apache-karaf-4.3.0 
>>>> 
>>>> It might have something to do with the jline upgrade performed during the install.
>>>> 
>>>> Is this the right place or does this warrant a Jira?
>>>> 
>>>> Thanks,
>>>> 
>>>> Michael
>>>> 
>>>> 
>>>> Am 09.03.21 um 18:46 schrieb Jean-Baptiste Onofre:
>>>>> Hi,
>>>>> 
>>>>> Feature:install -v -t will directly output on the terminal (System.out).
>>>>> 
>>>>> When you do feature:install, the resolver output goes into data/karaf.log (by default).
>>>>> 
>>>>> Regards
>>>>> JB
>>>>> 
>>>>>> Le 9 mars 2021 à 18:22, Michael Brohl <mb...@apache.org> a écrit :
>>>>>> 
>>>>>> Thank you JB,
>>>>>> 
>>>>>> I was hoping there would be some general (and releatively easy) approach or strategy to detect the requirements each feature needs or maybe some compatibility list to study.
>>>>>> 
>>>>>> I will try with your suggestions and come back with more data if this is not successful.
>>>>>> 
>>>>>> The resolver output would be the result of the feature:install dry-run or ist it a specific logfile?
>>>>>> 
>>>>>> Thanks and regards,
>>>>>> 
>>>>>> Michael
>>>>>> 
>>>>>> 
>>>>>> Am 09.03.21 um 09:17 schrieb Jean-Baptiste Onofre:
>>>>>>> Hi Michael,
>>>>>>> 
>>>>>>> It’s hard to say without the log messages. You can use feature:install -t -v to "simulate" the installation and get some details (like refresh) before actually installing a feature.
>>>>>>> 
>>>>>>> I bet you have a refresh on hawtio caused by ActiveMQ.
>>>>>>> 
>>>>>>> You can disable auto refresh to avoid such issue, or change the installation "order" to avoid the refresh.
>>>>>>> 
>>>>>>> Can you please send the resolver output ?
>>>>>>> 
>>>>>>> Thanks,
>>>>>>> Regards
>>>>>>> JB
>>>>>>> 
>>>>>>>> Le 9 mars 2021 à 09:10, Michael Brohl <mb...@apache.org> a écrit :
>>>>>>>> 
>>>>>>>> Hi,
>>>>>>>> 
>>>>>>>> I am struggling with a fresh setup on Karaf 4.3.0, trying to install Apache Camel, ActiveMQ and Hawt.io in current versions.
>>>>>>>> 
>>>>>>>> Depending on the order of installation, I get different errors leaving me clueless what to do with errors like
>>>>>>>> 
>>>>>>>>     Singleton conflict. Unresolved requirements: []
>>>>>>>> 
>>>>>>>> Installing latest Hawt.io for example works and I can login to the web UI. After installing ActiveMQ and getting errors, I am not able to login to Hawt.io anymore.
>>>>>>>> 
>>>>>>>> Before I start asking for help for specific errors: is there a guide or strategy how to find out the correct versions of features/bundles, necessary repos to add and features/bundles to install as prerequisites of the feature/bundle to install?
>>>>>>>> 
>>>>>>>> Thanks for any hint,
>>>>>>>> 
>>>>>>>> Michael
>>>>>>>> 
>>>>>>>> 


Re: Strategy for installling features in the correct versions

Posted by Michael Brohl <mb...@apache.org>.
Same outcome with Camel 3.7.2 LTS and leaving out camel-stream as well 
(after clearing /data):

karaf@root()> feature:install -v -t camel-blueprint camel-jms camel-http
Adding features: 
camel-blueprint/[3.7.2,3.7.2],camel-http/[3.7.2,3.7.2],camel-jms/[3.7.2,3.7.2]
Changes to perform:
   Region: root
     Bundles to uninstall:
       org.jline.builtins/3.16.0
       org.jline.reader/3.16.0
       org.jline.terminal/3.16.0
       org.jline.terminal-jansi/3.16.0
     Bundles to install:
       mvn:com.github.ben-manes.caffeine/caffeine/2.8.8
       mvn:javax.servlet/javax.servlet-api/3.1.0
mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1
mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.3.2
mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.10.3
mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0
mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.2.0
mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.core/1.2.0
       mvn:org.apache.aries.proxy/org.apache.aries.proxy/1.1.9
       mvn:org.apache.camel/camel-api/3.7.2
       mvn:org.apache.camel/camel-attachments/3.7.2
       mvn:org.apache.camel/camel-base/3.7.2
       mvn:org.apache.camel/camel-base-engine/3.7.2
       mvn:org.apache.camel/camel-bean/3.7.2
       mvn:org.apache.camel/camel-browse/3.7.2
       mvn:org.apache.camel/camel-caffeine-lrucache/3.7.2
       mvn:org.apache.camel/camel-cloud/3.7.2
       mvn:org.apache.camel/camel-cluster/3.7.2
       mvn:org.apache.camel/camel-controlbus/3.7.2
       mvn:org.apache.camel/camel-core-catalog/3.7.2
       mvn:org.apache.camel/camel-core-engine/3.7.2
       mvn:org.apache.camel/camel-core-languages/3.7.2
       mvn:org.apache.camel/camel-core-model/3.7.2
       mvn:org.apache.camel/camel-core-processor/3.7.2
       mvn:org.apache.camel/camel-core-reifier/3.7.2
       mvn:org.apache.camel/camel-core-xml/3.7.2
       mvn:org.apache.camel/camel-dataformat/3.7.2
       mvn:org.apache.camel/camel-dataset/3.7.2
       mvn:org.apache.camel/camel-direct/3.7.2
       mvn:org.apache.camel/camel-directvm/3.7.2
       mvn:org.apache.camel/camel-file/3.7.2
       mvn:org.apache.camel/camel-health/3.7.2
       mvn:org.apache.camel/camel-http/3.7.2
       mvn:org.apache.camel/camel-http-base/3.7.2
       mvn:org.apache.camel/camel-http-common/3.7.2
       mvn:org.apache.camel/camel-jms/3.7.2
       mvn:org.apache.camel/camel-language/3.7.2
       mvn:org.apache.camel/camel-log/3.7.2
       mvn:org.apache.camel/camel-main/3.7.2
       mvn:org.apache.camel/camel-management/3.7.2
       mvn:org.apache.camel/camel-management-api/3.7.2
       mvn:org.apache.camel/camel-mock/3.7.2
       mvn:org.apache.camel/camel-ref/3.7.2
       mvn:org.apache.camel/camel-rest/3.7.2
       mvn:org.apache.camel/camel-saga/3.7.2
       mvn:org.apache.camel/camel-scheduler/3.7.2
       mvn:org.apache.camel/camel-seda/3.7.2
       mvn:org.apache.camel/camel-stub/3.7.2
       mvn:org.apache.camel/camel-support/3.7.2
       mvn:org.apache.camel/camel-timer/3.7.2
       mvn:org.apache.camel/camel-tooling-model/3.7.2
       mvn:org.apache.camel/camel-util/3.7.2
       mvn:org.apache.camel/camel-util-json/3.7.2
       mvn:org.apache.camel/camel-validator/3.7.2
       mvn:org.apache.camel/camel-vm/3.7.2
       mvn:org.apache.camel/camel-xml-jaxb/3.7.2
       mvn:org.apache.camel/camel-xml-jaxp/3.7.2
       mvn:org.apache.camel/camel-xpath/3.7.2
       mvn:org.apache.camel/camel-xslt/3.7.2
       mvn:org.apache.camel.karaf/camel-blueprint/3.7.2
       mvn:org.apache.camel.karaf/camel-commands-core/3.7.2
       mvn:org.apache.camel.karaf/camel-core-osgi/3.7.2
       mvn:org.apache.camel.karaf/camel-karaf-commands/3.7.2
       mvn:commons-pool/commons-pool/1.6
mvn:org.apache.geronimo.specs/geronimo-jms_2.0_spec/1.0-alpha-2
       mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
       mvn:org.apache.httpcomponents/httpclient-osgi/4.5.13
       mvn:org.apache.httpcomponents/httpcore-osgi/4.4.14
mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.blueprintstate/4.3.1-SNAPSHOT
mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.blueprint/4.3.0
mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/4.3.1-SNAPSHOT
mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/4.3.1-SNAPSHOT
mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/4.3.1-SNAPSHOT
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_6
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-runtime/2.3.1_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/5.2.13.RELEASE_1
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0
       mvn:org.jline/jline-builtins/3.19.0
       mvn:org.jline/jline-reader/3.19.0
       mvn:org.jline/jline-terminal/3.19.0
       mvn:org.jline/jline-terminal-jansi/3.19.0
       mvn:org.ow2.asm/asm/9.1
       mvn:org.ow2.asm/asm-commons/9.1
       mvn:org.ow2.asm/asm-tree/9.1
       mvn:org.ow2.asm/asm-analysis/9.1
       mvn:org.ow2.asm/asm-util/9.1
       mvn:org.codehaus.woodstox/stax2-api/3.1.4
       mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
   Bundles to refresh:
     org.apache.karaf.bundle.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.config.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.deployer.kar/4.3.0 (Wired to 
org.apache.karaf.kar.core/4.3.0 which is being refreshed)
     org.apache.karaf.diagnostic.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.event/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.features.command/4.3.0 (Wired to 
org.jline.terminal/3.16.0 which is being refreshed)
     org.apache.karaf.instance.core/4.3.0 (Wired to 
org.apache.karaf.features.command/4.3.0 which is being refreshed)
     org.apache.karaf.jaas.command/4.3.0 (Should be wired to: 
org.apache.karaf.jaas.command/4.3.1.SNAPSHOT (through 
[org.apache.karaf.jaas.command/4.3.0] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=org.apache.karaf.jaas.command.completers)(version>=4.3.0)(!(version>=5.0.0)))"))
     org.apache.karaf.kar.core/4.3.0 (Wired to 
org.apache.karaf.features.command/4.3.0 which is being refreshed)
     org.apache.karaf.log.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.package.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.service.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.shell.commands/4.3.0 (Wired to 
org.jline.terminal/3.16.0 which is being refreshed)
     org.apache.karaf.shell.core/4.3.0 (Wired to 
org.jline.builtins/3.16.0 which is being refreshed)
     org.apache.karaf.shell.ssh/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.system.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.jline.builtins/3.16.0 (Bundle will be uninstalled)
     org.jline.reader/3.16.0 (Bundle will be uninstalled)
     org.jline.terminal/3.16.0 (Bundle will be uninstalled)
     org.jline.terminal-jansi/3.16.0 (Bundle will be uninstalled)

karaf@root()> feature:install camel-blueprint camel-jms camel-http
Error executing command: Method 
org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; 
is abstract
/Applications/Development/apache-karaf-4.3.0 


Regards,

Michael



Am 09.03.21 um 21:14 schrieb Michael Brohl:
> No constraint, I wanted to use the most recent versions but got stuck 
> there as well.
>
> I then found examples using this version and just tried. I'm going to 
> use the most recent versions now and try with your tips to get it to 
> work.
>
> Thanks,
>
> Michael
>
>
> Am 09.03.21 um 20:58 schrieb Jean-Baptiste Onofre:
>> Actually, it’s not the whole Karaf runtime which stop or restart: 
>> it’s the shell part.
>>
>> The problem is that you install camel-stream not aligned in term of 
>> jline, and so the karaf shell is refreshed due to jline.
>>
>> Do you have a constraint to use a so old Camel version ??!!!
>>
>> Regards
>> JB
>>
>>> Le 9 mars 2021 à 19:03, Michael Brohl <mb...@apache.org> a écrit :
>>>
>>> Ok, I think I will provide the first example for the difficulties I 
>>> face.
>>>
>>> I removed the /data folder and restarted Karaf, then:
>>>
>>> karaf@root()> feature:install -v -t camel-blueprint camel-stream 
>>> camel-blueprint camel-jms camel-http camel-saxon
>>> Adding features: 
>>> camel-http/[2.24.1,2.24.1],camel-jms/[2.24.1,2.24.1],camel-blueprint/[2.24.1,2.24.1],camel-saxon/[2.24.1,2.24.1],camel-stream/[2.24.1,2.24.1]
>>> Changes to perform:
>>>    Region: root
>>>      Bundles to uninstall:
>>>        org.jline.builtins/3.16.0
>>>        org.jline.reader/3.16.0
>>>        org.jline.terminal/3.16.0
>>>        org.jline.terminal-jansi/3.16.0
>>>      Bundles to install:
>>>        mvn:javax.servlet/javax.servlet-api/3.1.0
>>> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1
>>> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.3.2
>>> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.10.3
>>> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0 
>>>
>>> mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.2.0
>>> mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.core/1.2.0
>>>        mvn:org.apache.aries.proxy/org.apache.aries.proxy/1.1.9
>>>        mvn:org.apache.camel/camel-blueprint/2.24.1
>>>        mvn:org.apache.camel/camel-commands-core/2.24.1
>>>        mvn:org.apache.camel/camel-core/2.24.1
>>>        mvn:org.apache.camel/camel-http/2.24.1
>>>        mvn:org.apache.camel/camel-http-common/2.24.1
>>>        mvn:org.apache.camel/camel-jms/2.24.1
>>>        mvn:org.apache.camel/camel-saxon/2.24.1
>>>        mvn:org.apache.camel/camel-stream/2.24.1
>>>        mvn:org.apache.camel.karaf/camel-karaf-commands/2.24.1
>>>        mvn:commons-codec/commons-codec/1.11
>>>        mvn:commons-pool/commons-pool/1.6
>>> mvn:org.apache.geronimo.specs/geronimo-jms_2.0_spec/1.0-alpha-2
>>> mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
>>> mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.blueprintstate/4.3.1-SNAPSHOT 
>>>
>>> mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.blueprint/4.3.0
>>> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/4.3.1-SNAPSHOT
>>> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/4.3.1-SNAPSHOT
>>> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/4.3.1-SNAPSHOT
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_6 
>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient/3.1_7 
>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.11_1 
>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/9.9.0-2_1 
>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/5.2.13.RELEASE_1 
>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/5.2.13.RELEASE_1 
>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/5.2.13.RELEASE_1 
>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/5.2.13.RELEASE_1 
>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/5.2.13.RELEASE_1 
>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/5.2.13.RELEASE_1 
>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/5.2.13.RELEASE_1 
>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/5.2.13.RELEASE_1 
>>>
>>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5 
>>>
>>> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0 
>>>
>>>        mvn:org.jline/jline-builtins/3.19.0
>>>        mvn:org.jline/jline-reader/3.19.0
>>>        mvn:org.jline/jline-terminal/3.19.0
>>>        mvn:org.jline/jline-terminal-jansi/3.19.0
>>>        mvn:org.ow2.asm/asm/9.1
>>>        mvn:org.ow2.asm/asm-commons/9.1
>>>        mvn:org.ow2.asm/asm-tree/9.1
>>>        mvn:org.ow2.asm/asm-analysis/9.1
>>>        mvn:org.ow2.asm/asm-util/9.1
>>>        mvn:org.codehaus.woodstox/stax2-api/3.1.4
>>>        mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
>>>    Bundles to refresh:
>>>      org.apache.karaf.bundle.core/4.3.0 (Wired to 
>>> org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>      org.apache.karaf.config.core/4.3.0 (Wired to 
>>> org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>      org.apache.karaf.deployer.kar/4.3.0 (Wired to 
>>> org.apache.karaf.kar.core/4.3.0 which is being refreshed)
>>>      org.apache.karaf.diagnostic.core/4.3.0 (Wired to 
>>> org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>      org.apache.karaf.event/4.3.0 (Wired to 
>>> org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>      org.apache.karaf.features.command/4.3.0 (Wired to 
>>> org.jline.terminal/3.16.0 which is being refreshed)
>>>      org.apache.karaf.instance.core/4.3.0 (Wired to 
>>> org.apache.karaf.features.command/4.3.0 which is being refreshed)
>>>      org.apache.karaf.jaas.command/4.3.0 (Should be wired to: 
>>> org.apache.karaf.jaas.command/4.3.1.SNAPSHOT (through 
>>> [org.apache.karaf.jaas.command/4.3.0] osgi.wiring.package; 
>>> filter:="(&(osgi.wiring.package=org.apache.karaf.jaas.command.completers)(version>=4.3.0)(!(version>=5.0.0)))"))
>>>      org.apache.karaf.kar.core/4.3.0 (Wired to 
>>> org.apache.karaf.features.command/4.3.0 which is being refreshed)
>>>      org.apache.karaf.log.core/4.3.0 (Wired to 
>>> org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>      org.apache.karaf.package.core/4.3.0 (Wired to 
>>> org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>      org.apache.karaf.service.core/4.3.0 (Wired to 
>>> org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>      org.apache.karaf.shell.commands/4.3.0 (Wired to 
>>> org.jline.terminal/3.16.0 which is being refreshed)
>>>      org.apache.karaf.shell.core/4.3.0 (Wired to 
>>> org.jline.builtins/3.16.0 which is being refreshed)
>>>      org.apache.karaf.shell.ssh/4.3.0 (Wired to 
>>> org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>      org.apache.karaf.system.core/4.3.0 (Wired to 
>>> org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>>      org.jline.builtins/3.16.0 (Bundle will be uninstalled)
>>>      org.jline.reader/3.16.0 (Bundle will be uninstalled)
>>>      org.jline.terminal/3.16.0 (Bundle will be uninstalled)
>>>      org.jline.terminal-jansi/3.16.0 (Bundle will be uninstalled)
>>>
>>> When I install without -t -v , Karaf crashes and I'm in my shell:
>>>
>>> karaf@root()> feature:install camel-blueprint camel-stream 
>>> camel-blueprint camel-jms camel-http camel-saxon
>>> Error executing command: Method 
>>> org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; 
>>> is abstract
>>> /Applications/Development/apache-karaf-4.3.0 
>>>
>>> Karaf cannot be startet again:
>>>
>>> /Applications/Development/apache-karaf-4.3.0  ./bin/karaf
>>>          __ __                  ____
>>>         / //_/____ __________ _/ __/
>>>        / ,<  / __ `/ ___/ __ `/ /_
>>>       / /| |/ /_/ / /  / /_/ / __/
>>>      /_/ |_|\__,_/_/   \__,_/_/
>>>
>>>    Apache Karaf (4.3.0)
>>>
>>> Hit '<tab>' for a list of available commands
>>> and '[cmd] --help' for help on a specific command.
>>> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>>>
>>> Error executing command: Method 
>>> org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; 
>>> is abstract
>>> /Applications/Development/apache-karaf-4.3.0 
>>>
>>> It might have something to do with the jline upgrade performed 
>>> during the install.
>>>
>>> Is this the right place or does this warrant a Jira?
>>>
>>> Thanks,
>>>
>>> Michael
>>>
>>>
>>> Am 09.03.21 um 18:46 schrieb Jean-Baptiste Onofre:
>>>> Hi,
>>>>
>>>> Feature:install -v -t will directly output on the terminal 
>>>> (System.out).
>>>>
>>>> When you do feature:install, the resolver output goes into 
>>>> data/karaf.log (by default).
>>>>
>>>> Regards
>>>> JB
>>>>
>>>>> Le 9 mars 2021 à 18:22, Michael Brohl <mb...@apache.org> a écrit :
>>>>>
>>>>> Thank you JB,
>>>>>
>>>>> I was hoping there would be some general (and releatively easy) 
>>>>> approach or strategy to detect the requirements each feature needs 
>>>>> or maybe some compatibility list to study.
>>>>>
>>>>> I will try with your suggestions and come back with more data if 
>>>>> this is not successful.
>>>>>
>>>>> The resolver output would be the result of the feature:install 
>>>>> dry-run or ist it a specific logfile?
>>>>>
>>>>> Thanks and regards,
>>>>>
>>>>> Michael
>>>>>
>>>>>
>>>>> Am 09.03.21 um 09:17 schrieb Jean-Baptiste Onofre:
>>>>>> Hi Michael,
>>>>>>
>>>>>> It’s hard to say without the log messages. You can use 
>>>>>> feature:install -t -v to "simulate" the installation and get some 
>>>>>> details (like refresh) before actually installing a feature.
>>>>>>
>>>>>> I bet you have a refresh on hawtio caused by ActiveMQ.
>>>>>>
>>>>>> You can disable auto refresh to avoid such issue, or change the 
>>>>>> installation "order" to avoid the refresh.
>>>>>>
>>>>>> Can you please send the resolver output ?
>>>>>>
>>>>>> Thanks,
>>>>>> Regards
>>>>>> JB
>>>>>>
>>>>>>> Le 9 mars 2021 à 09:10, Michael Brohl <mb...@apache.org> a écrit :
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I am struggling with a fresh setup on Karaf 4.3.0, trying to 
>>>>>>> install Apache Camel, ActiveMQ and Hawt.io in current versions.
>>>>>>>
>>>>>>> Depending on the order of installation, I get different errors 
>>>>>>> leaving me clueless what to do with errors like
>>>>>>>
>>>>>>>     Singleton conflict. Unresolved requirements: []
>>>>>>>
>>>>>>> Installing latest Hawt.io for example works and I can login to 
>>>>>>> the web UI. After installing ActiveMQ and getting errors, I am 
>>>>>>> not able to login to Hawt.io anymore.
>>>>>>>
>>>>>>> Before I start asking for help for specific errors: is there a 
>>>>>>> guide or strategy how to find out the correct versions of 
>>>>>>> features/bundles, necessary repos to add and features/bundles to 
>>>>>>> install as prerequisites of the feature/bundle to install?
>>>>>>>
>>>>>>> Thanks for any hint,
>>>>>>>
>>>>>>> Michael
>>>>>>>
>>>>>>>

Re: Strategy for installling features in the correct versions

Posted by Michael Brohl <mb...@apache.org>.
No constraint, I wanted to use the most recent versions but got stuck 
there as well.

I then found examples using this version and just tried. I'm going to 
use the most recent versions now and try with your tips to get it to work.

Thanks,

Michael


Am 09.03.21 um 20:58 schrieb Jean-Baptiste Onofre:
> Actually, it’s not the whole Karaf runtime which stop or restart: it’s the shell part.
>
> The problem is that you install camel-stream not aligned in term of jline, and so the karaf shell is refreshed due to jline.
>
> Do you have a constraint to use a so old Camel version ??!!!
>
> Regards
> JB
>
>> Le 9 mars 2021 à 19:03, Michael Brohl <mb...@apache.org> a écrit :
>>
>> Ok, I think I will provide the first example for the difficulties I face.
>>
>> I removed the /data folder and restarted Karaf, then:
>>
>> karaf@root()> feature:install -v -t camel-blueprint camel-stream camel-blueprint camel-jms camel-http camel-saxon
>> Adding features: camel-http/[2.24.1,2.24.1],camel-jms/[2.24.1,2.24.1],camel-blueprint/[2.24.1,2.24.1],camel-saxon/[2.24.1,2.24.1],camel-stream/[2.24.1,2.24.1]
>> Changes to perform:
>>    Region: root
>>      Bundles to uninstall:
>>        org.jline.builtins/3.16.0
>>        org.jline.reader/3.16.0
>>        org.jline.terminal/3.16.0
>>        org.jline.terminal-jansi/3.16.0
>>      Bundles to install:
>>        mvn:javax.servlet/javax.servlet-api/3.1.0
>> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1
>> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.3.2
>> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.10.3
>> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0
>> mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.2.0
>> mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.core/1.2.0
>>        mvn:org.apache.aries.proxy/org.apache.aries.proxy/1.1.9
>>        mvn:org.apache.camel/camel-blueprint/2.24.1
>>        mvn:org.apache.camel/camel-commands-core/2.24.1
>>        mvn:org.apache.camel/camel-core/2.24.1
>>        mvn:org.apache.camel/camel-http/2.24.1
>>        mvn:org.apache.camel/camel-http-common/2.24.1
>>        mvn:org.apache.camel/camel-jms/2.24.1
>>        mvn:org.apache.camel/camel-saxon/2.24.1
>>        mvn:org.apache.camel/camel-stream/2.24.1
>>        mvn:org.apache.camel.karaf/camel-karaf-commands/2.24.1
>>        mvn:commons-codec/commons-codec/1.11
>>        mvn:commons-pool/commons-pool/1.6
>> mvn:org.apache.geronimo.specs/geronimo-jms_2.0_spec/1.0-alpha-2
>>        mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
>> mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.blueprintstate/4.3.1-SNAPSHOT
>> mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.blueprint/4.3.0
>> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/4.3.1-SNAPSHOT
>> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/4.3.1-SNAPSHOT
>> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/4.3.1-SNAPSHOT
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_6
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient/3.1_7
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.11_1
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/9.9.0-2_1
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/5.2.13.RELEASE_1
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/5.2.13.RELEASE_1
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/5.2.13.RELEASE_1
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/5.2.13.RELEASE_1
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/5.2.13.RELEASE_1
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/5.2.13.RELEASE_1
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/5.2.13.RELEASE_1
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/5.2.13.RELEASE_1
>> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5
>> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0
>>        mvn:org.jline/jline-builtins/3.19.0
>>        mvn:org.jline/jline-reader/3.19.0
>>        mvn:org.jline/jline-terminal/3.19.0
>>        mvn:org.jline/jline-terminal-jansi/3.19.0
>>        mvn:org.ow2.asm/asm/9.1
>>        mvn:org.ow2.asm/asm-commons/9.1
>>        mvn:org.ow2.asm/asm-tree/9.1
>>        mvn:org.ow2.asm/asm-analysis/9.1
>>        mvn:org.ow2.asm/asm-util/9.1
>>        mvn:org.codehaus.woodstox/stax2-api/3.1.4
>>        mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
>>    Bundles to refresh:
>>      org.apache.karaf.bundle.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>      org.apache.karaf.config.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>      org.apache.karaf.deployer.kar/4.3.0 (Wired to org.apache.karaf.kar.core/4.3.0 which is being refreshed)
>>      org.apache.karaf.diagnostic.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>      org.apache.karaf.event/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>      org.apache.karaf.features.command/4.3.0 (Wired to org.jline.terminal/3.16.0 which is being refreshed)
>>      org.apache.karaf.instance.core/4.3.0 (Wired to org.apache.karaf.features.command/4.3.0 which is being refreshed)
>>      org.apache.karaf.jaas.command/4.3.0 (Should be wired to: org.apache.karaf.jaas.command/4.3.1.SNAPSHOT (through [org.apache.karaf.jaas.command/4.3.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.karaf.jaas.command.completers)(version>=4.3.0)(!(version>=5.0.0)))"))
>>      org.apache.karaf.kar.core/4.3.0 (Wired to org.apache.karaf.features.command/4.3.0 which is being refreshed)
>>      org.apache.karaf.log.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>      org.apache.karaf.package.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>      org.apache.karaf.service.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>      org.apache.karaf.shell.commands/4.3.0 (Wired to org.jline.terminal/3.16.0 which is being refreshed)
>>      org.apache.karaf.shell.core/4.3.0 (Wired to org.jline.builtins/3.16.0 which is being refreshed)
>>      org.apache.karaf.shell.ssh/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>      org.apache.karaf.system.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>>      org.jline.builtins/3.16.0 (Bundle will be uninstalled)
>>      org.jline.reader/3.16.0 (Bundle will be uninstalled)
>>      org.jline.terminal/3.16.0 (Bundle will be uninstalled)
>>      org.jline.terminal-jansi/3.16.0 (Bundle will be uninstalled)
>>
>> When I install without -t -v , Karaf crashes and I'm in my shell:
>>
>> karaf@root()> feature:install camel-blueprint camel-stream camel-blueprint camel-jms camel-http camel-saxon
>> Error executing command: Method org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; is abstract
>> /Applications/Development/apache-karaf-4.3.0 
>>
>> Karaf cannot be startet again:
>>
>> /Applications/Development/apache-karaf-4.3.0  ./bin/karaf
>>          __ __                  ____
>>         / //_/____ __________ _/ __/
>>        / ,<  / __ `/ ___/ __ `/ /_
>>       / /| |/ /_/ / /  / /_/ / __/
>>      /_/ |_|\__,_/_/   \__,_/_/
>>
>>    Apache Karaf (4.3.0)
>>
>> Hit '<tab>' for a list of available commands
>> and '[cmd] --help' for help on a specific command.
>> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>>
>> Error executing command: Method org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; is abstract
>> /Applications/Development/apache-karaf-4.3.0 
>>
>> It might have something to do with the jline upgrade performed during the install.
>>
>> Is this the right place or does this warrant a Jira?
>>
>> Thanks,
>>
>> Michael
>>
>>
>> Am 09.03.21 um 18:46 schrieb Jean-Baptiste Onofre:
>>> Hi,
>>>
>>> Feature:install -v -t will directly output on the terminal (System.out).
>>>
>>> When you do feature:install, the resolver output goes into data/karaf.log (by default).
>>>
>>> Regards
>>> JB
>>>
>>>> Le 9 mars 2021 à 18:22, Michael Brohl <mb...@apache.org> a écrit :
>>>>
>>>> Thank you JB,
>>>>
>>>> I was hoping there would be some general (and releatively easy) approach or strategy to detect the requirements each feature needs or maybe some compatibility list to study.
>>>>
>>>> I will try with your suggestions and come back with more data if this is not successful.
>>>>
>>>> The resolver output would be the result of the feature:install dry-run or ist it a specific logfile?
>>>>
>>>> Thanks and regards,
>>>>
>>>> Michael
>>>>
>>>>
>>>> Am 09.03.21 um 09:17 schrieb Jean-Baptiste Onofre:
>>>>> Hi Michael,
>>>>>
>>>>> It’s hard to say without the log messages. You can use feature:install -t -v to "simulate" the installation and get some details (like refresh) before actually installing a feature.
>>>>>
>>>>> I bet you have a refresh on hawtio caused by ActiveMQ.
>>>>>
>>>>> You can disable auto refresh to avoid such issue, or change the installation "order" to avoid the refresh.
>>>>>
>>>>> Can you please send the resolver output ?
>>>>>
>>>>> Thanks,
>>>>> Regards
>>>>> JB
>>>>>
>>>>>> Le 9 mars 2021 à 09:10, Michael Brohl <mb...@apache.org> a écrit :
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am struggling with a fresh setup on Karaf 4.3.0, trying to install Apache Camel, ActiveMQ and Hawt.io in current versions.
>>>>>>
>>>>>> Depending on the order of installation, I get different errors leaving me clueless what to do with errors like
>>>>>>
>>>>>>     Singleton conflict. Unresolved requirements: []
>>>>>>
>>>>>> Installing latest Hawt.io for example works and I can login to the web UI. After installing ActiveMQ and getting errors, I am not able to login to Hawt.io anymore.
>>>>>>
>>>>>> Before I start asking for help for specific errors: is there a guide or strategy how to find out the correct versions of features/bundles, necessary repos to add and features/bundles to install as prerequisites of the feature/bundle to install?
>>>>>>
>>>>>> Thanks for any hint,
>>>>>>
>>>>>> Michael
>>>>>>
>>>>>>

Re: Strategy for installling features in the correct versions

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Actually, it’s not the whole Karaf runtime which stop or restart: it’s the shell part.

The problem is that you install camel-stream not aligned in term of jline, and so the karaf shell is refreshed due to jline.

Do you have a constraint to use a so old Camel version ??!!!

Regards
JB

> Le 9 mars 2021 à 19:03, Michael Brohl <mb...@apache.org> a écrit :
> 
> Ok, I think I will provide the first example for the difficulties I face.
> 
> I removed the /data folder and restarted Karaf, then:
> 
> karaf@root()> feature:install -v -t camel-blueprint camel-stream camel-blueprint camel-jms camel-http camel-saxon
> Adding features: camel-http/[2.24.1,2.24.1],camel-jms/[2.24.1,2.24.1],camel-blueprint/[2.24.1,2.24.1],camel-saxon/[2.24.1,2.24.1],camel-stream/[2.24.1,2.24.1]
> Changes to perform:
>   Region: root
>     Bundles to uninstall:
>       org.jline.builtins/3.16.0
>       org.jline.reader/3.16.0
>       org.jline.terminal/3.16.0
>       org.jline.terminal-jansi/3.16.0
>     Bundles to install:
>       mvn:javax.servlet/javax.servlet-api/3.1.0
> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1
> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.3.2
> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.10.3
> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0
> mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.2.0
> mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.core/1.2.0
>       mvn:org.apache.aries.proxy/org.apache.aries.proxy/1.1.9
>       mvn:org.apache.camel/camel-blueprint/2.24.1
>       mvn:org.apache.camel/camel-commands-core/2.24.1
>       mvn:org.apache.camel/camel-core/2.24.1
>       mvn:org.apache.camel/camel-http/2.24.1
>       mvn:org.apache.camel/camel-http-common/2.24.1
>       mvn:org.apache.camel/camel-jms/2.24.1
>       mvn:org.apache.camel/camel-saxon/2.24.1
>       mvn:org.apache.camel/camel-stream/2.24.1
>       mvn:org.apache.camel.karaf/camel-karaf-commands/2.24.1
>       mvn:commons-codec/commons-codec/1.11
>       mvn:commons-pool/commons-pool/1.6
> mvn:org.apache.geronimo.specs/geronimo-jms_2.0_spec/1.0-alpha-2
>       mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
> mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.blueprintstate/4.3.1-SNAPSHOT
> mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.blueprint/4.3.0
> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/4.3.1-SNAPSHOT
> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/4.3.1-SNAPSHOT
> mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/4.3.1-SNAPSHOT
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_6
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient/3.1_7
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.11_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/9.9.0-2_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/5.2.13.RELEASE_1
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0
>       mvn:org.jline/jline-builtins/3.19.0
>       mvn:org.jline/jline-reader/3.19.0
>       mvn:org.jline/jline-terminal/3.19.0
>       mvn:org.jline/jline-terminal-jansi/3.19.0
>       mvn:org.ow2.asm/asm/9.1
>       mvn:org.ow2.asm/asm-commons/9.1
>       mvn:org.ow2.asm/asm-tree/9.1
>       mvn:org.ow2.asm/asm-analysis/9.1
>       mvn:org.ow2.asm/asm-util/9.1
>       mvn:org.codehaus.woodstox/stax2-api/3.1.4
>       mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
>   Bundles to refresh:
>     org.apache.karaf.bundle.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.config.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.deployer.kar/4.3.0 (Wired to org.apache.karaf.kar.core/4.3.0 which is being refreshed)
>     org.apache.karaf.diagnostic.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.event/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.features.command/4.3.0 (Wired to org.jline.terminal/3.16.0 which is being refreshed)
>     org.apache.karaf.instance.core/4.3.0 (Wired to org.apache.karaf.features.command/4.3.0 which is being refreshed)
>     org.apache.karaf.jaas.command/4.3.0 (Should be wired to: org.apache.karaf.jaas.command/4.3.1.SNAPSHOT (through [org.apache.karaf.jaas.command/4.3.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.karaf.jaas.command.completers)(version>=4.3.0)(!(version>=5.0.0)))"))
>     org.apache.karaf.kar.core/4.3.0 (Wired to org.apache.karaf.features.command/4.3.0 which is being refreshed)
>     org.apache.karaf.log.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.package.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.service.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.shell.commands/4.3.0 (Wired to org.jline.terminal/3.16.0 which is being refreshed)
>     org.apache.karaf.shell.core/4.3.0 (Wired to org.jline.builtins/3.16.0 which is being refreshed)
>     org.apache.karaf.shell.ssh/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.apache.karaf.system.core/4.3.0 (Wired to org.apache.karaf.shell.core/4.3.0 which is being refreshed)
>     org.jline.builtins/3.16.0 (Bundle will be uninstalled)
>     org.jline.reader/3.16.0 (Bundle will be uninstalled)
>     org.jline.terminal/3.16.0 (Bundle will be uninstalled)
>     org.jline.terminal-jansi/3.16.0 (Bundle will be uninstalled)
> 
> When I install without -t -v , Karaf crashes and I'm in my shell:
> 
> karaf@root()> feature:install camel-blueprint camel-stream camel-blueprint camel-jms camel-http camel-saxon
> Error executing command: Method org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; is abstract
> /Applications/Development/apache-karaf-4.3.0 
> 
> Karaf cannot be startet again:
> 
> /Applications/Development/apache-karaf-4.3.0  ./bin/karaf
>         __ __                  ____
>        / //_/____ __________ _/ __/
>       / ,<  / __ `/ ___/ __ `/ /_
>      / /| |/ /_/ / /  / /_/ / __/
>     /_/ |_|\__,_/_/   \__,_/_/
> 
>   Apache Karaf (4.3.0)
> 
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
> 
> Error executing command: Method org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; is abstract
> /Applications/Development/apache-karaf-4.3.0 
> 
> It might have something to do with the jline upgrade performed during the install.
> 
> Is this the right place or does this warrant a Jira?
> 
> Thanks,
> 
> Michael
> 
> 
> Am 09.03.21 um 18:46 schrieb Jean-Baptiste Onofre:
>> Hi,
>> 
>> Feature:install -v -t will directly output on the terminal (System.out).
>> 
>> When you do feature:install, the resolver output goes into data/karaf.log (by default).
>> 
>> Regards
>> JB
>> 
>>> Le 9 mars 2021 à 18:22, Michael Brohl <mb...@apache.org> a écrit :
>>> 
>>> Thank you JB,
>>> 
>>> I was hoping there would be some general (and releatively easy) approach or strategy to detect the requirements each feature needs or maybe some compatibility list to study.
>>> 
>>> I will try with your suggestions and come back with more data if this is not successful.
>>> 
>>> The resolver output would be the result of the feature:install dry-run or ist it a specific logfile?
>>> 
>>> Thanks and regards,
>>> 
>>> Michael
>>> 
>>> 
>>> Am 09.03.21 um 09:17 schrieb Jean-Baptiste Onofre:
>>>> Hi Michael,
>>>> 
>>>> It’s hard to say without the log messages. You can use feature:install -t -v to "simulate" the installation and get some details (like refresh) before actually installing a feature.
>>>> 
>>>> I bet you have a refresh on hawtio caused by ActiveMQ.
>>>> 
>>>> You can disable auto refresh to avoid such issue, or change the installation "order" to avoid the refresh.
>>>> 
>>>> Can you please send the resolver output ?
>>>> 
>>>> Thanks,
>>>> Regards
>>>> JB
>>>> 
>>>>> Le 9 mars 2021 à 09:10, Michael Brohl <mb...@apache.org> a écrit :
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> I am struggling with a fresh setup on Karaf 4.3.0, trying to install Apache Camel, ActiveMQ and Hawt.io in current versions.
>>>>> 
>>>>> Depending on the order of installation, I get different errors leaving me clueless what to do with errors like
>>>>> 
>>>>>    Singleton conflict. Unresolved requirements: []
>>>>> 
>>>>> Installing latest Hawt.io for example works and I can login to the web UI. After installing ActiveMQ and getting errors, I am not able to login to Hawt.io anymore.
>>>>> 
>>>>> Before I start asking for help for specific errors: is there a guide or strategy how to find out the correct versions of features/bundles, necessary repos to add and features/bundles to install as prerequisites of the feature/bundle to install?
>>>>> 
>>>>> Thanks for any hint,
>>>>> 
>>>>> Michael
>>>>> 
>>>>> 


Re: Strategy for installling features in the correct versions

Posted by Michael Brohl <mb...@apache.org>.
Ok, I think I will provide the first example for the difficulties I face.

I removed the /data folder and restarted Karaf, then:

karaf@root()> feature:install -v -t camel-blueprint camel-stream 
camel-blueprint camel-jms camel-http camel-saxon
Adding features: 
camel-http/[2.24.1,2.24.1],camel-jms/[2.24.1,2.24.1],camel-blueprint/[2.24.1,2.24.1],camel-saxon/[2.24.1,2.24.1],camel-stream/[2.24.1,2.24.1]
Changes to perform:
   Region: root
     Bundles to uninstall:
       org.jline.builtins/3.16.0
       org.jline.reader/3.16.0
       org.jline.terminal/3.16.0
       org.jline.terminal-jansi/3.16.0
     Bundles to install:
       mvn:javax.servlet/javax.servlet-api/3.1.0
mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1
mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.3.2
mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.10.3
mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0
mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.2.0
mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.core/1.2.0
       mvn:org.apache.aries.proxy/org.apache.aries.proxy/1.1.9
       mvn:org.apache.camel/camel-blueprint/2.24.1
       mvn:org.apache.camel/camel-commands-core/2.24.1
       mvn:org.apache.camel/camel-core/2.24.1
       mvn:org.apache.camel/camel-http/2.24.1
       mvn:org.apache.camel/camel-http-common/2.24.1
       mvn:org.apache.camel/camel-jms/2.24.1
       mvn:org.apache.camel/camel-saxon/2.24.1
       mvn:org.apache.camel/camel-stream/2.24.1
       mvn:org.apache.camel.karaf/camel-karaf-commands/2.24.1
       mvn:commons-codec/commons-codec/1.11
       mvn:commons-pool/commons-pool/1.6
mvn:org.apache.geronimo.specs/geronimo-jms_2.0_spec/1.0-alpha-2
       mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.blueprintstate/4.3.1-SNAPSHOT
mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.blueprint/4.3.0
mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/4.3.1-SNAPSHOT
mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/4.3.1-SNAPSHOT
mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/4.3.1-SNAPSHOT
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_6
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient/3.1_7
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.11_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/9.9.0-2_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/5.2.13.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0
       mvn:org.jline/jline-builtins/3.19.0
       mvn:org.jline/jline-reader/3.19.0
       mvn:org.jline/jline-terminal/3.19.0
       mvn:org.jline/jline-terminal-jansi/3.19.0
       mvn:org.ow2.asm/asm/9.1
       mvn:org.ow2.asm/asm-commons/9.1
       mvn:org.ow2.asm/asm-tree/9.1
       mvn:org.ow2.asm/asm-analysis/9.1
       mvn:org.ow2.asm/asm-util/9.1
       mvn:org.codehaus.woodstox/stax2-api/3.1.4
       mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
   Bundles to refresh:
     org.apache.karaf.bundle.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.config.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.deployer.kar/4.3.0 (Wired to 
org.apache.karaf.kar.core/4.3.0 which is being refreshed)
     org.apache.karaf.diagnostic.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.event/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.features.command/4.3.0 (Wired to 
org.jline.terminal/3.16.0 which is being refreshed)
     org.apache.karaf.instance.core/4.3.0 (Wired to 
org.apache.karaf.features.command/4.3.0 which is being refreshed)
     org.apache.karaf.jaas.command/4.3.0 (Should be wired to: 
org.apache.karaf.jaas.command/4.3.1.SNAPSHOT (through 
[org.apache.karaf.jaas.command/4.3.0] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=org.apache.karaf.jaas.command.completers)(version>=4.3.0)(!(version>=5.0.0)))"))
     org.apache.karaf.kar.core/4.3.0 (Wired to 
org.apache.karaf.features.command/4.3.0 which is being refreshed)
     org.apache.karaf.log.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.package.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.service.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.shell.commands/4.3.0 (Wired to 
org.jline.terminal/3.16.0 which is being refreshed)
     org.apache.karaf.shell.core/4.3.0 (Wired to 
org.jline.builtins/3.16.0 which is being refreshed)
     org.apache.karaf.shell.ssh/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.apache.karaf.system.core/4.3.0 (Wired to 
org.apache.karaf.shell.core/4.3.0 which is being refreshed)
     org.jline.builtins/3.16.0 (Bundle will be uninstalled)
     org.jline.reader/3.16.0 (Bundle will be uninstalled)
     org.jline.terminal/3.16.0 (Bundle will be uninstalled)
     org.jline.terminal-jansi/3.16.0 (Bundle will be uninstalled)

When I install without -t -v , Karaf crashes and I'm in my shell:

karaf@root()> feature:install camel-blueprint camel-stream 
camel-blueprint camel-jms camel-http camel-saxon
Error executing command: Method 
org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; 
is abstract
/Applications/Development/apache-karaf-4.3.0 

Karaf cannot be startet again:

/Applications/Development/apache-karaf-4.3.0  ./bin/karaf
         __ __                  ____
        / //_/____ __________ _/ __/
       / ,<  / __ `/ ___/ __ `/ /_
      / /| |/ /_/ / /  / /_/ / __/
     /_/ |_|\__,_/_/   \__,_/_/

   Apache Karaf (4.3.0)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

Error executing command: Method 
org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; 
is abstract
/Applications/Development/apache-karaf-4.3.0 

It might have something to do with the jline upgrade performed during 
the install.

Is this the right place or does this warrant a Jira?

Thanks,

Michael


Am 09.03.21 um 18:46 schrieb Jean-Baptiste Onofre:
> Hi,
>
> Feature:install -v -t will directly output on the terminal (System.out).
>
> When you do feature:install, the resolver output goes into data/karaf.log (by default).
>
> Regards
> JB
>
>> Le 9 mars 2021 à 18:22, Michael Brohl <mb...@apache.org> a écrit :
>>
>> Thank you JB,
>>
>> I was hoping there would be some general (and releatively easy) approach or strategy to detect the requirements each feature needs or maybe some compatibility list to study.
>>
>> I will try with your suggestions and come back with more data if this is not successful.
>>
>> The resolver output would be the result of the feature:install dry-run or ist it a specific logfile?
>>
>> Thanks and regards,
>>
>> Michael
>>
>>
>> Am 09.03.21 um 09:17 schrieb Jean-Baptiste Onofre:
>>> Hi Michael,
>>>
>>> It’s hard to say without the log messages. You can use feature:install -t -v to "simulate" the installation and get some details (like refresh) before actually installing a feature.
>>>
>>> I bet you have a refresh on hawtio caused by ActiveMQ.
>>>
>>> You can disable auto refresh to avoid such issue, or change the installation "order" to avoid the refresh.
>>>
>>> Can you please send the resolver output ?
>>>
>>> Thanks,
>>> Regards
>>> JB
>>>
>>>> Le 9 mars 2021 à 09:10, Michael Brohl <mb...@apache.org> a écrit :
>>>>
>>>> Hi,
>>>>
>>>> I am struggling with a fresh setup on Karaf 4.3.0, trying to install Apache Camel, ActiveMQ and Hawt.io in current versions.
>>>>
>>>> Depending on the order of installation, I get different errors leaving me clueless what to do with errors like
>>>>
>>>>     Singleton conflict. Unresolved requirements: []
>>>>
>>>> Installing latest Hawt.io for example works and I can login to the web UI. After installing ActiveMQ and getting errors, I am not able to login to Hawt.io anymore.
>>>>
>>>> Before I start asking for help for specific errors: is there a guide or strategy how to find out the correct versions of features/bundles, necessary repos to add and features/bundles to install as prerequisites of the feature/bundle to install?
>>>>
>>>> Thanks for any hint,
>>>>
>>>> Michael
>>>>
>>>>

Re: Strategy for installling features in the correct versions

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,

Feature:install -v -t will directly output on the terminal (System.out).

When you do feature:install, the resolver output goes into data/karaf.log (by default).

Regards
JB

> Le 9 mars 2021 à 18:22, Michael Brohl <mb...@apache.org> a écrit :
> 
> Thank you JB,
> 
> I was hoping there would be some general (and releatively easy) approach or strategy to detect the requirements each feature needs or maybe some compatibility list to study.
> 
> I will try with your suggestions and come back with more data if this is not successful.
> 
> The resolver output would be the result of the feature:install dry-run or ist it a specific logfile?
> 
> Thanks and regards,
> 
> Michael
> 
> 
> Am 09.03.21 um 09:17 schrieb Jean-Baptiste Onofre:
>> Hi Michael,
>> 
>> It’s hard to say without the log messages. You can use feature:install -t -v to "simulate" the installation and get some details (like refresh) before actually installing a feature.
>> 
>> I bet you have a refresh on hawtio caused by ActiveMQ.
>> 
>> You can disable auto refresh to avoid such issue, or change the installation "order" to avoid the refresh.
>> 
>> Can you please send the resolver output ?
>> 
>> Thanks,
>> Regards
>> JB
>> 
>>> Le 9 mars 2021 à 09:10, Michael Brohl <mb...@apache.org> a écrit :
>>> 
>>> Hi,
>>> 
>>> I am struggling with a fresh setup on Karaf 4.3.0, trying to install Apache Camel, ActiveMQ and Hawt.io in current versions.
>>> 
>>> Depending on the order of installation, I get different errors leaving me clueless what to do with errors like
>>> 
>>>    Singleton conflict. Unresolved requirements: []
>>> 
>>> Installing latest Hawt.io for example works and I can login to the web UI. After installing ActiveMQ and getting errors, I am not able to login to Hawt.io anymore.
>>> 
>>> Before I start asking for help for specific errors: is there a guide or strategy how to find out the correct versions of features/bundles, necessary repos to add and features/bundles to install as prerequisites of the feature/bundle to install?
>>> 
>>> Thanks for any hint,
>>> 
>>> Michael
>>> 
>>> 


Re: Strategy for installling features in the correct versions

Posted by Michael Brohl <mb...@apache.org>.
Thank you JB,

I was hoping there would be some general (and releatively easy) approach 
or strategy to detect the requirements each feature needs or maybe some 
compatibility list to study.

I will try with your suggestions and come back with more data if this is 
not successful.

The resolver output would be the result of the feature:install dry-run 
or ist it a specific logfile?

Thanks and regards,

Michael


Am 09.03.21 um 09:17 schrieb Jean-Baptiste Onofre:
> Hi Michael,
>
> It’s hard to say without the log messages. You can use feature:install -t -v to "simulate" the installation and get some details (like refresh) before actually installing a feature.
>
> I bet you have a refresh on hawtio caused by ActiveMQ.
>
> You can disable auto refresh to avoid such issue, or change the installation "order" to avoid the refresh.
>
> Can you please send the resolver output ?
>
> Thanks,
> Regards
> JB
>
>> Le 9 mars 2021 à 09:10, Michael Brohl <mb...@apache.org> a écrit :
>>
>> Hi,
>>
>> I am struggling with a fresh setup on Karaf 4.3.0, trying to install Apache Camel, ActiveMQ and Hawt.io in current versions.
>>
>> Depending on the order of installation, I get different errors leaving me clueless what to do with errors like
>>
>>     Singleton conflict. Unresolved requirements: []
>>
>> Installing latest Hawt.io for example works and I can login to the web UI. After installing ActiveMQ and getting errors, I am not able to login to Hawt.io anymore.
>>
>> Before I start asking for help for specific errors: is there a guide or strategy how to find out the correct versions of features/bundles, necessary repos to add and features/bundles to install as prerequisites of the feature/bundle to install?
>>
>> Thanks for any hint,
>>
>> Michael
>>
>>

Re: Strategy for installling features in the correct versions

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Michael,

It’s hard to say without the log messages. You can use feature:install -t -v to "simulate" the installation and get some details (like refresh) before actually installing a feature.

I bet you have a refresh on hawtio caused by ActiveMQ.

You can disable auto refresh to avoid such issue, or change the installation "order" to avoid the refresh.

Can you please send the resolver output ?

Thanks,
Regards
JB

> Le 9 mars 2021 à 09:10, Michael Brohl <mb...@apache.org> a écrit :
> 
> Hi,
> 
> I am struggling with a fresh setup on Karaf 4.3.0, trying to install Apache Camel, ActiveMQ and Hawt.io in current versions.
> 
> Depending on the order of installation, I get different errors leaving me clueless what to do with errors like
> 
>    Singleton conflict. Unresolved requirements: []
> 
> Installing latest Hawt.io for example works and I can login to the web UI. After installing ActiveMQ and getting errors, I am not able to login to Hawt.io anymore.
> 
> Before I start asking for help for specific errors: is there a guide or strategy how to find out the correct versions of features/bundles, necessary repos to add and features/bundles to install as prerequisites of the feature/bundle to install?
> 
> Thanks for any hint,
> 
> Michael
> 
>