我正在使用JavaSE 1.6在Windows 7下的eclipse Kepler中运行BND工具,我正在尝试使用webconsole启动Apache Felix框架4.4.0。我很困惑,因为同样的方法似乎在Ubuntu 14.04下工作。我没看到什么?
除了正常的bundle之外,我正在运行Jetty webserver和felix webconsole包的bundle。现在,当我尝试访问http://localhost:8080/system/console
时,我从码头获得了404。现在这确实告诉我jetty工作正常,但webconsole不知何故无法正常工作。
我试图重新添加捆绑包,重新启动eclipse,重新启动我的PC,但都没有效果。一个最小的例子在另一台运行Ubuntu的机器上运行,我以前也可以运行它。
现在我确实发现有一个属性" manager.root"我可以自己设置webconsole的位置,但我没有改变它(即使我这样做,它似乎无效)。是否有命令从控制台获取位置?
我只运行以下4个捆绑包:
活动捆绑:
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)
答案 0 :(得分:0)
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]