Osgi 无法访问webconsole接口

Osgi 无法访问webconsole接口,osgi,apache-felix,osgi-bundle,Osgi,Apache Felix,Osgi Bundle,几天以来,我一直在和ApacheFelix玩。启动lb命令时,一切正常: START LEVEL 2 ID|State |Level|Name 0|Active | 0|System Bundle (4.0.3) 1|Active | 2|Apache Felix Bundle Repository (1.6.6) 2|Active | 2|Apache Felix Configuration Admin Serv

几天以来,我一直在和ApacheFelix玩。启动lb命令时,一切正常:

START LEVEL 2
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (4.0.3)
    1|Active     |    2|Apache Felix Bundle Repository (1.6.6)
    2|Active     |    2|Apache Felix Configuration Admin Service (1.6.0)
    3|Active     |    2|Apache Felix Gogo Command (0.12.0)
    4|Active     |    2|Apache Felix Gogo Runtime (0.10.0)
    5|Active     |    2|Apache Felix Gogo Shell (0.10.0)
    6|Active     |    2|Apache Felix Http Bundle (2.2.0)
    7|Active     |    2|Apache Felix iPOJO (1.8.6)
    8|Active     |    2|Apache Felix iPOJO OSGi Junit Runner (1.0.0)
    9|Active     |    2|Apache Felix Shell Service (1.4.3)
   10|Active     |    2|Apache Felix Web Management Console (3.1.8)
   11|Installed  |    3|[Optimacs/OSGi] DataService - Hello World (1.1.0)
   12|Active     |    2|[Optimacs/OSGi] DataService Model (0.4.1.SNAPSHOT)
   13|Active     |    2|[Optimacs/OSGi] DataService Network API (0.4.1.SNAPSHOT)
   14|Active     |    2|[Optimacs/OSGi] DataService Container (0.4.1.SNAPSHOT)
根据这个列表,我可以使用web管理控制台。为此,我将org.osgi.service.http.port选项设置为8080。 当我打开浏览器(Chrome,最新版本)并尝试访问web控制台(
url=http://localhost:8080/system/console
)。我得到一个错误102(连接被拒绝)。 我是否错过了任何特定的配置步骤

编辑

通过gogo shell运行
inspect cap service
,可报告以下关于HttpService的信息:

org.apache.felix.http.bundle [6] provides:
------------------------------------------
service; javax.servlet.http.HttpServlet with properties:
   http.felix.dispatcher = org.apache.felix.http.base.internal.DispatcherServlet
   service.description = Dispatcher for bridged request handling
   service.id = 20
   service.vendor = The Apache Software Foundation
service; java.util.EventListener with properties:
   http.felix.dispatcher = org.apache.felix.http.base.internal.EventDispatcher
   service.description = Dispatcher for bridged HttpSession events
   service.id = 21
   service.vendor = The Apache Software Foundation

不幸的是,没有关于所用端口的指示。

由于Neil的评论,问题已得到解决:

我想知道HttpService是否存在,您是否可以从shell检查cap服务并扫描HttpService?如果它在那里,它还应该报告它正在使用的端口号


嗯,没有明显的遗漏。我想知道HttpService是否存在,您是否可以从shell执行
检查cap service
,并扫描HttpService?如果它在那里,它还应该报告它正在使用的端口号。@NeilBartlett我在编辑我的帖子时考虑了你的评论。我是在寻找有关
HttpService
,而不是
HttpServlet
@Neilbartlet的信息。你的评论帮助我指出了遗漏的内容。实际上,http.bundle还不够,还必须安装org.apache.felix.http.jetty-2.2.0.jar。或者您可以尝试一下,它应该可以毫无问题地启动(至少这是想法;)-它仍处于早期alpha阶段)。