need exactly specify the import jline package version for webconsole.gogo
-------------------------------------------------------------------------
Key: KARAF-162
URL: https://issues.apache.org/jira/browse/KARAF-162
Project: Karaf
Issue Type: Bug
Affects Versions: 2.0.0
Reporter: Freeman Fang
Assignee: Freeman Fang
Fix For: 2.2.0
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.osgimanagerhttpcont...@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))
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.