0

我想用eclipse在我的电脑(ubuntun 14.04,JDK1.7)上安装Kura。我跟着http://eclipse.github.io/kura/doc/configurable_component.html。我的问题是我无法连接到 localhost:8080。

在eclipse的控制台中,我输入了'ss',它的输出是

"Framework is launched."


id  State       Bundle
0   ACTIVE      org.eclipse.osgi_3.8.1.v20120830-144521
1   RESOLVED    slf4j.log4j12_1.6.0
                Master=39
2   ACTIVE      org.eclipse.equinox.ds_1.4.0.v20120522-1841
3   ACTIVE      org.eclipse.jetty.http_8.1.3.v20120522
4   ACTIVE      javax.servlet_3.0.0.v201112011016
5   ACTIVE      org.eclipse.equinox.console_1.0.0.v20120522-1841
6   ACTIVE      org.apache.commons.fileupload_1.2.2.v20111214-1400
7   ACTIVE      org.eclipse.kura.deployment.agent_1.0.1
8   ACTIVE      org.eclipse.jetty.continuation_8.1.3.v20120522
9   ACTIVE      org.apache.felix.deploymentadmin_0.9.5
10  ACTIVE      org.eclipse.kura.example.hello_osgi_1.0.0.qualifier
11  INSTALLED   org.eclipse.kura.core_1.0.1
12  ACTIVE      org.eclipse.equinox.io_1.0.400.v20120522-2049
13  ACTIVE      log4j_1.2.17
                Fragments=24
14  ACTIVE      org.eclipse.equinox.metatype_1.2.0.v20120522-1841
15  ACTIVE      org.eclipse.osgi.services_3.3.100.v20120522-1822
16  ACTIVE      org.apache.commons.io_2.4.0
17  ACTIVE      com.gwt.user_0.2.0
18  ACTIVE      org.apache.commons.net_3.1.0.v201205071737
19  INSTALLED   org.eclipse.kura.core.net_1.0.1
20  ACTIVE      org.apache.felix.dependencymanager_3.0.0
21  INSTALLED   org.eclipse.kura.core.configuration_1.0.1
22  ACTIVE      org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841
23  ACTIVE      org.eclipse.soda.dk.comm_1.2.1
24  RESOLVED    log4j.apache-log4j-extras_1.1.0
                Master=13
25  ACTIVE      org.hsqldb.hsqldb_2.3.0
26  ACTIVE      org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841
27  ACTIVE      org.eclipse.equinox.util_1.0.400.v20120522-2049
28  ACTIVE      org.eclipse.equinox.event_1.2.200.v20120522-2049
29  ACTIVE      org.eclipse.jetty.server_8.1.3.v20120522
30  ACTIVE      org.eclipse.jetty.servlet_8.1.3.v20120522
31  INSTALLED   org.eclipse.kura.core.cloud_1.0.1
32  ACTIVE      org.json_1.0.0.v201011060100
33  ACTIVE      javax.usb.api_1.0.2
34  INSTALLED   org.eclipse.kura.emulator_1.0.1
35  ACTIVE      org.eclipse.osgi.util_3.2.300.v20120522-1822
36  ACTIVE      org.apache.felix.gogo.runtime_0.8.0.v201108120515
37  ACTIVE      org.eclipse.kura.api_1.0.1
38  ACTIVE      org.eclipse.jetty.util_8.1.3.v20120522
39  ACTIVE      slf4j.api_1.6.4
                Fragments=1
40  ACTIVE      org.eclipse.kura.example.configurable_1.0.0.qualifier
41  ACTIVE      org.eclipse.jetty.io_8.1.3.v20120522
42  ACTIVE      org.eclipse.equinox.cm_1.0.400.v20120522-1841
43  ACTIVE      org.apache.felix.gogo.shell_0.8.0.v201110170705
44  ACTIVE      org.eclipse.jetty.security_8.1.3.v20120522
45  INSTALLED   org.eclipse.kura.web_1.0.1
46  ACTIVE      org.eclipse.kura.core.crypto_1.0.1
47  ACTIVE      osgi.cmpn_4.3.0.201111022214
48  ACTIVE      javax.usb.common_1.0.2

评论'ls'给了

All Components:
ID  State           Component Name          Located in bundle
1   Active      org.eclipse.kura.deployment.agent           org.eclipse.kura.deployment.agent(bid=7)
2   Active      org.eclipse.kura.example.hello_osgi         org.eclipse.kura.example.hello_osgi(bid=10)
3   Active      org.eclipse.equinox.event           org.eclipse.equinox.event(bid=28)
4   Unsatisfied     org.eclipse.kura.example.configurable           org.eclipse.kura.example.configurable(bid=40)
5   Active      org.eclipse.kura.crypto.CryptoService           org.eclipse.kur

有没有人遇到过这个问题可以帮助我,拜托。先感谢您

4

2 回答 2

0

我有同样的问题......答案是我下载了错误的包。有 2 个开发人员工作区可供下载。在没有 WebUI 的左侧。尝试下载右侧的 Developers Workspace(扩展下载)Developers Workspace(带 Web UI) https://www.eclipse.org/kura/downloads.php

于 2015-04-17T11:23:13.053 回答
0

我可以看到你有很多INSTALLEDRESOLVED捆绑,这应该是ACTIVE在 Kura 开始之后。这可能是Kura Web UI服务激活失败的原因。因为 Web 服务可能依赖于其他捆绑包或服务。

因此,如果您仍然没有解决它,请尝试以下操作:

  1. 通过编辑/opt/eclipse/kura/kura/log4j.properties文件更改日志级别。设置log4j.rootLogger=INFO,kuralog4j.rootLogger=DEBUG,kura。并重启kura。
  2. /var/log/kura.log,可能有一些调试消息。
  3. /var/log/kura-console.log,可能有一些例外解释了为什么捆绑包没有被激活。

如果您仍然不知道为什么,请在此处发布,我们可以讨论。

希望这能解决你的问题,干杯

于 2016-04-04T20:52:26.503 回答