New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature:install hawtio failed with missing wiring package #1568

Closed
peterberkman opened this Issue Sep 12, 2014 · 4 comments

Comments

Projects
None yet
2 participants
@peterberkman
Contributor

peterberkman commented Sep 12, 2014

Karaf v3.0.1
Hawtio v1.4.19

from console: feature:install hawtio

exception:

20140912 14:23:59.768 [ERROR] Karaf Console Local user karaf | 37:org.apache.karaf.shell.console | org.apache.karaf.shell.util.ShellUtil | Exception caught while executing command
java.lang.Exception: Could not start bundle mvn:io.hawt/hawtio-karaf-terminal/1.4.19/war in feature(s) hawtio-karaf-terminal-1.4.19: Unresolved constraint in bundle io.hawt.hawtio-karaf-terminal [243]: Unable to resolve 243.0: missing requirement [243.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.karaf.shell.console.jline)(version>=2.2.0)(!(version>=4.0.0)))
at org.apache.karaf.features.internal.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:478)
at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:433)
at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:373)
at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:362)
at Proxy87c5e375_c56a_4631_8210_ddb06d588177.installFeature(Unknown Source)
at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:67)
at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:38)
at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_51]
at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_51]
at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
at org.apache.karaf.shell.console.commands.$BlueprintCommand2088053967.execute(Unknown Source)[37:org.apache.karaf.shell.console:3.0.1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_51]
at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_51]
at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
at org.apache.karaf.shell.console.commands.$BlueprintCommand2088053967.execute(Unknown Source)[37:org.apache.karaf.shell.console:3.0.1]
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[37:org.apache.karaf.shell.console:3.0.1]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[37:org.apache.karaf.shell.console:3.0.1]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[37:org.apache.karaf.shell.console:3.0.1]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[37:org.apache.karaf.shell.console:3.0.1]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[37:org.apache.karaf.shell.console:3.0.1]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[37:org.apache.karaf.shell.console:3.0.1]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
at org.apache.karaf.shell.console.impl.jline.ConsoleImpl$DelegateSession.execute(ConsoleImpl.java:521)
at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:212)
at java.lang.Thread.run(Thread.java:744)[:1.7.0_51]
at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:126)[37:org.apache.karaf.shell.console:3.0.1]
at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:117)
at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_51]
at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[38:org.apache.karaf.jaas.modules:3.0.1]
at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:115)[37:org.apache.karaf.shell.console:3.0.1]
Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle io.hawt.hawtio-karaf-terminal [243]: Unable to resolve 243.0: missing requirement [243.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.karaf.shell.console.jline)(version>=2.2.0)(!(version>=4.0.0)))
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
at org.apache.karaf.features.internal.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:475)
... 38 more

@davsclaus

This comment has been minimized.

Show comment
Hide comment
@davsclaus

davsclaus Sep 13, 2014

Member

Yes unfortunately Karaf 2.x and 3.x is not very compatible - they just removed stuff and did a bunch of other breakings :(

Member

davsclaus commented Sep 13, 2014

Yes unfortunately Karaf 2.x and 3.x is not very compatible - they just removed stuff and did a bunch of other breakings :(

@davsclaus davsclaus self-assigned this Sep 13, 2014

@davsclaus davsclaus added the karaf label Sep 13, 2014

@davsclaus

This comment has been minimized.

Show comment
Hide comment
@davsclaus

davsclaus Sep 13, 2014

Member

You can install hawtio-core so you do not install the terminal which dont work on karaf 3 yet

Member

davsclaus commented Sep 13, 2014

You can install hawtio-core so you do not install the terminal which dont work on karaf 3 yet

@peterberkman

This comment has been minimized.

Show comment
Hide comment
@peterberkman

peterberkman Sep 13, 2014

Contributor

thank you Claus! that worked! (too bad, terminal is a good feature in Hawtio)!

Contributor

peterberkman commented Sep 13, 2014

thank you Claus! that worked! (too bad, terminal is a good feature in Hawtio)!

@davsclaus davsclaus added this to the 1.4.20 milestone Sep 13, 2014

@davsclaus

This comment has been minimized.

Show comment
Hide comment
@davsclaus

davsclaus Sep 13, 2014

Member

Yeah I logged a ticket about supporting karaf 3. I got past the osgi import hurdle, but the console has been changed between 2.x and 3.0 so its harder to support both at the same time.

Closing this ticket to track by #1569

Member

davsclaus commented Sep 13, 2014

Yeah I logged a ticket about supporting karaf 3. I got past the osgi import hurdle, but the console has been changed between 2.x and 3.0 so its harder to support both at the same time.

Closing this ticket to track by #1569

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment