Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-162

need exactly specify the import jline package version for webconsole.gogo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • None
    • None

    Description

      as jline is exported with org.apache.karaf.shell.console bundle and probably other bundles(jruby for example) in OSGi container, we should ensure that webconsole.gogo can get resolved to pick up jline package with org.apache.karaf.shell.console bundle, so that it can import other mandatory package from org.apache.karaf.shell.console.

      This issue is originally from that we see in smx kit, when features:install webconsole, get errors like
      ava.lang.IllegalStateException: ResourceModel{id=org.ops4j.pax.web.service.spi.model.ResourceModel-3,name=/res,urlPatte
      rns=[/system/console/res/*],alias=/system/console/res,servlet=ResourceServlet

      {context=/,alias=/system/console/res,name=/ res}

      ,initParams={},context=ContextModel{id=org.ops4j.pax.web.service.spi.model.ContextModel-1,name=,httpContext=org.apac
      he.felix.webconsole.internal.servlet.OsgiManagerHttpContext@48669e,contextParams={}}} was not found
      at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.removeServlet(JettyServerImpl.java:236)
      at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.removeServlet(ServerControllerImpl.java
      :253)
      at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.removeServlet(ServerControllerImpl.java:104)
      at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregister(HttpServiceStarted.java:233)
      at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregister(HttpServiceProxy.java:70)
      at org.apache.felix.webconsole.internal.servlet.OsgiManager.unbindHttpService(OsgiManager.java:686)
      at org.apache.felix.webconsole.internal.servlet.OsgiManager.updateConfiguration(OsgiManager.java:768)
      at org.apache.felix.webconsole.internal.servlet.ConfigurationListener.updated(ConfigurationListener.java:66)
      at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1112)
      at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:88)
      RE: org.apache.felix.framework.resolver.ResolveException: Constraint violation for package 'jline' when resolving module
      189.0 between existing import 161.0.jline BLAMED ON http://189.0 package; (&(package=jline)(version>=0.9.0)) and uses cons
      traint 9.0.jline BLAMED ON http://189.0 package; (&(package=org.apache.karaf.shell.console.jline)(version>=2.0.0))

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: