Hi,

So I decided to experiment with installing, removing and reinstalling
features.  I now remember the reason why I am unsure about how to upgrade a
feature.  I seem to be able to install, uninstall and then reinstall my
features (didn't play with it too much, just tried to see if it looks like
it worked) but things break if you do the same thing with Hawtio and I'm
not really sure why.  So if you do the following from a fresh Karaf 3.0.3:

karaf@root>feature:repo-add hawtio
Adding feature url mvn:io.hawt/hawtio-karaf/LATEST/xml/features
karaf@root>feature:install hawtio-offline
karaf@root>feature:repo-remove -u hawtio-1.4.48
karaf@root>feature:repo-add hawtio
Adding feature url mvn:io.hawt/hawtio-karaf/LATEST/xml/features
karaf@root>feature:install hawtio-offline

then you get the error below.  At that point I can't even install my Karaf
features the first time because of the jine conflicts.  If there is truly a
JLine conflict, why does hawtio install correctly at all?

2015-04-18 23:28:14,527 | ERROR | l for user karaf | ShellUtil
           | 25 - org.apache.karaf.shell.console - 3.0.3 | Exception caught
while executing command
java.lang.IllegalStateException: Can't install feature hawtio-offline/0.0.0:
Could not start bundle mvn:io.hawt/hawtio-karaf-terminal/1.4.48/war in
feature(s) hawtio-karaf-terminal-1.4.48: Uses constraint violation. Unable
to resolve bundle revision io.hawt.hawtio-karaf-terminal [107.0] because it
is exposed to package 'jline' from bundle revisions jline [106.0] and jline
[22.0] via two dependency chains.

Chain 1:
  io.hawt.hawtio-karaf-terminal [107.0]
    import:
(&(osgi.wiring.package=jline)(version>=2.11.0)(!(version>=3.0.0)))
     |
    export: osgi.wiring.package=jline
  jline [106.0]

Chain 2:
  io.hawt.hawtio-karaf-terminal [107.0]
    import:
(&(osgi.wiring.package=org.apache.karaf.shell.console)(version>=3.0.0)(!(version>=4.0.0)))
     |
    export: osgi.wiring.package=org.apache.karaf.shell.console; uses:=jline
  org.apache.karaf.shell.console [25.0]
    import:
(&(osgi.wiring.package=jline)(version>=2.12.0)(!(version>=3.0.0)))
     |
    export: osgi.wiring.package=jline
  jline [22.0]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:388)
at Proxyaa4edd16_924a_4c58_9988_7a5a568d5be9.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)[25:org.apache.karaf.shell.console:3.0.3]
at
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[25:org.apache.karaf.shell.console:3.0.3]
at
org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[25:org.apache.karaf.shell.console:3.0.3]
at Proxy61b43e2d_4b68_41fc_9baa_2a6881f18400.execute(Unknown Source)[:]
at Proxy61b43e2d_4b68_41fc_9baa_2a6881f18400.execute(Unknown Source)[:]
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[25:org.apache.karaf.shell.console:3.0.3]
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[25:org.apache.karaf.shell.console:3.0.3]
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[25:org.apache.karaf.shell.console:3.0.3]
at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[25:org.apache.karaf.shell.console:3.0.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[25:org.apache.karaf.shell.console:3.0.3]
at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[25:org.apache.karaf.shell.console:3.0.3]
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
at
org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:208)
at
org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:109)
at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_40]
at
org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[26:org.apache.karaf.jaas.modules:3.0.3]
at
org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:102)[25:org.apache.karaf.shell.console:3.0.3]
2015-04-18 23:33:03,172 | WARN  | l for user karaf | FeatureValidationUtil
           | 20 - org.a

Reply via email to