简体   繁体   English

Apache Felix Web控制台404

[英]Apache Felix Webconsole 404

I am running BND tools in eclipse Kepler under windows 7 using JavaSE 1.6, and I am trying to start an Apache Felix framework 4.4.0 with a webconsole. 我正在使用Java SE 1.6在Windows 7下的eclipse Kepler中运行BND工具,并且尝试通过Webconsole启动Apache Felix框架4.4.0。 I am quite puzzled since the same approach did seem to work under Ubuntu 14.04. 我很困惑,因为同样的方法在Ubuntu 14.04下似乎确实有效。 What am I not seeing? 我没看到什么?

Besides the normal bundles, I am running the bundles for the Jetty webserver and the felix webconsole bundle. 除了普通的捆绑软件,我还在运行Jetty Web服务器和felix Webconsole捆绑软件的捆绑软件。 Now when I try to access http://localhost:8080/system/console I get a 404 from jetty. 现在,当我尝试访问http://localhost:8080/system/console我从码头得到了404。 Now this does tell me that jetty is working correctly, but the webconsole somehow does not work correctly. 现在,这确实告诉我码头工作正常,但是Web控制台某种程度上却无法正常工作。

I have tried to re-add the bundles, restart eclipse, restart my PC, but all without effect. 我试图重新添加捆绑软件,重新启动eclipse,重新启动我的PC,但所有操作均无效。 A minimal example does run on another machine running Ubuntu, and I used to be able to run it in the past as well. 一个最小的示例确实在另一台运行Ubuntu的计算机上运行,​​过去我也能够运行它。

Now I did find that there is a property "manager.root" by which I can set the location of the webconsole myself, but I haven't changed it (even if I did, it seemed ineffective). 现在,我确实发现有一个属性“ manager.root”,通过它我可以自己设置网络控制台的位置,但是我没有更改它(即使这样做了,它似乎也无效)。 Is there a command to get the location from the console? 是否有命令从控制台获取位置?

I am running only the following 4 bundles: 我仅运行以下4个捆绑包:

  • org.apache.felix.gogo.shell org.apache.felix.gogo.shell
  • org.apache.felix.gogo.command org.apache.felix.gogo.command
  • org.apache.felix.http.jetty org.apache.felix.http.jetty
  • org.apache.felix.webconsole org.apache.felix.webconsole

Active bundles: 活动套装:

ID|State      |Level|Name
 0|Active     |    0|System Bundle (4.4.0)
 1|Active     |    1|Java Servlet API (3.0.1)
 2|Active     |    1|Apache Felix Gogo Command (0.12.0)
 3|Active     |    1|Apache Felix Gogo Runtime (0.10.0)
 4|Active     |    1|Apache Felix Gogo Shell (0.10.0)
 5|Active     |    1|Apache Felix Http Jetty (2.2.2)
 6|Active     |    1|Apache Felix Web Management Console (All In One) (4.2.2.all)
 7|Active     |    1|osgi.enterprise (4.2.0.201003190513)
 8|Active     |    1|osgi.residential (4.3.0.201111022239)

Thank you Neil, you were right. 谢谢尼尔,你说的没错。 In the example on Ubuntu, I found that indeed I was using another version of the Java Servlet API (2.5). 在Ubuntu上的示例中,我发现确实在使用Java Servlet API的另一个版本(2.5)。 After making sure I was using version 2.5 on the windows machine as well, it all seemed to work fine. 确保我也在Windows机器上使用了2.5版之后,一切似乎都可以正常工作。

The requirements of the webconsole package are as follows: Webconsole软件包的要求如下:

g! inspect req osgi.wiring.package 6
org.apache.felix.webconsole [6] requires:
-----------------------------------------
osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=2.4.0)) resolved by:
   osgi.wiring.package; javax.servlet 3.0.0 from javax.servlet-api [1]
osgi.wiring.package; (&(osgi.wiring.package=javax.servlet.http)(version>=2.4.0)) resolved by:
   osgi.wiring.package; javax.servlet.http 3.0.0 from javax.servlet-api [1]
osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework)(version>=1.4.0)(!(version>=2.0.0))) resolved by:
   osgi.wiring.package; org.osgi.framework 1.7.0 from org.apache.felix.framework [0]
osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) resolved by:
   osgi.wiring.package; org.osgi.service.http 1.2.1 from osgi.residential [8]
osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.packageadmin)(version>=1.2.0)(!(version>=2.0.0))) resolved by:
   osgi.wiring.package; org.osgi.service.packageadmin 1.2.0 from org.apache.felix.framework [0]
osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.startlevel)(version>=1.1.0)(!(version>=2.0.0))) resolved by:
   osgi.wiring.package; org.osgi.service.startlevel 1.1.0 from org.apache.felix.framework [0]
osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.bundlerepository)(version>=2.0.0)(!(version>=3.0.0))) [UNRESOLVED]
osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.obr)(version>=1.0.0)(!(version>=2.0.0))) [UNRESOLVED]
osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.cm)(version>=1.2.0)(!(version>=2.0.0))) resolved by:
   osgi.wiring.package; org.osgi.service.cm 1.4.0 from osgi.residential [8]
osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.condpermadmin)(version>=1.0.0)(!(version>=2.0.0))) [UNRESOLVED]
osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.log)(version>=1.3.0)(!(version>=2.0.0))) [UNRESOLVED]
osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.metatype)(version>=1.1.0)(!(version>=2.0.0))) [UNRESOLVED]
osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.permissionadmin)(version>=1.2.0)(!(version>=2.0.0))) [UNRESOLVED]
osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.prefs)(version>=1.1.0)(!(version>=2.0.0))) [UNRESOLVED]
osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.wireadmin)(version>=1.0.0)(!(version>=2.0.0))) [UNRESOLVED]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM