问题标签 [knopflerfish]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
745 浏览

osgi - Knopflerfish packaging

I am at the moment creating a matrix which is showing how far Knopflerfish, Equinox and Felix are OSGi 4.2 compliant.

So far I looked at the Knopflerfish documentation (Link 1, Link 2) to get an idea of how much of the Core and Compendium specs are actually implemented.

The core specification seems to be fully implemented, although there are some inconsistent statements about the Security Layer and the Declarative Services.

What makes me wonder is how much of all the Compendium specs are implemented:

  • Remote Services
  • Log Service
  • Http Service
  • Device Access
  • Configuration Admin Service
  • Metatype Service
  • Preferences Service
  • User Admin Service
  • Wire Admin Service
  • IO Connector Service
  • Initial Provisioning
  • UPnP Device Service
  • Declarative Services
  • Event Admin Service
  • Deployment Admin
  • Auto Configuration
  • Application Admin
  • DMT Admin Service
  • Monitor Admin Service
  • Foreign Application Access
  • Blueprint Container
  • Tracker
  • XML Parser Service
  • Position
  • Measurement and State
  • Execution Environment

To find out more I downloaded (Download page) the source code of Knopflerfish and had a look at it. It looks like some parts of the spec are implemented through the "original" framework provided by the OSGi Alliance (org.osgi.*).

One example is the UPnP package:

alt text http://img6.imageshack.us/img6/5853/screenshot20100403at212.png

Does this mean that missing parts which are not directly implemented by Knopflerfish are added through the "original" OSGi framework?

And does this also apply to other frameworks like Felix or Equinox?

0 投票
2 回答
285 浏览

java - Java Socket 无法通过网络传输数据

我在 Java Knopflerfish 客户端包和 PHP(CLI,而不是 Web)服务器之间遇到了一个奇怪的套接字问题。

当两者都位于本地主机上时,客户端/服务器对工作正常,并且所有数据都成功传输。但是,当 Java 客户端存在于不同的机器上时,与服务器的连接成功,但 PHP 脚本没有接收到数据。数据包分析确认 Java 客户端发送的数据已被服务器接收 - PHP 似乎在处理它时遇到了问题。

作为进一步说明,我已经使用 telnet 作为客户端进行了一些测试。PHP 服务器脚本可以从任何主机接收所有数据。这让我相信这个问题与 java 设置套接字的方式有关,或者存在一些我不熟悉的网络问题。任何想法将不胜感激。如果需要,可以发布代码示例。

0 投票
1 回答
186 浏览

osgi - Knopflerfish OSGi 桌面是否需要连接到 www.knopflerfish.org?

我正在尝试使用 knopflerfish 桌面的 OSGi 教程。今天,当我尝试打开本地 .jar 文件以将其安装为新包时,它挂起。它在控制台上吐出一条消息 [stderr] 连接到“http://www.knopflerfish.org/releases/3.1.0/repository.xml”时出错:java.net.ConnectException:连接超时:连接

事实上,www.knopflerfish.org 今天似乎已关闭。没有连接到母舰就没有办法使用这个工具吗?

0 投票
1 回答
196 浏览

osgi - 有什么方法可以制作 Knoplerfish 所需的捆绑包?

如果特定捆绑包无法初始化,是否有任何方法可以中止 Knoplerfish 的启动?默认情况下,FrameworkErrorEvent 会打印到控制台,并且框架会继续加载。

初始化.xargs

控制台输出

0 投票
1 回答
836 浏览

java - 在 KnopFlerFish 中为 bundle 添加外部 jar

我正在尝试使用 knopflerfish 构建和运行带有外部 jar (tinyos.jar) 的捆绑包。

在编译时,没有问题......但在运行时......

org.osgi.framework.BundleException:无法解析捆绑包:缺少包或无法解析所有包:net.tinyos.util、net.tinyos.packet、net.tinyos.message

我已经将 tinyos.jar 放在构建路径中,并且已经经常使用 build.xml 文件......此时 build.xml 已经

这没有用......所以..我必须设置到运行时调用的 jar 的适当性是什么?

提前致谢!

0 投票
1 回答
598 浏览

android - Android Activity 如何使用安装在设备上的 Knopflerfish OSGi Bundle

我已经使用本教程在 Android 模拟器上安装了 Knopflerfish:http ://www.knopflerfish.org/releases/current/docs/android_dalvik_tutorial.html

模拟器上的安装没问题,现在我想从我的 Android Activity 调用模拟器上运行的 OSGi 包。但我只是找不到任何方法来做到这一点。

有没有人已经做过这样的事情?

0 投票
1 回答
475 浏览

web-services - Web 服务、Axis 和 OSGI (knopflerfish)

我首先警告你,因为我是初学者。所以,我不知道我是否会在所有方面都具体。这是我的问题:

我有一个 wsdl 文件。目前,我使用 Tomcat 和 Axis 来部署它。因此,为此,我使用了轴的 wsdl2java 工具,它为我生成了 Web 服务的“骨架”。然后我在生成的文件上写下 web 服务的各种方法的代码。最后,我使用 Axis 在 tomcat 上部署 web 服务。一切似乎或多或少都有效。

问题是我想使用 osgi (knopflerfish) 的捆绑轴来部署这个 web 服务。但我不知道该怎么做。

我们是否应该再次使用 wsdl 文件并使用类似 wsdl2java 但适用于 knopflerfish 的工具生成代码?或者我应该使用之前在 Axis 上创建的“骨架”并将其调整为 osgi?一般来说,我们如何使用knopflerfish的轴束?

老实说,我在互联网上找不到很多关于它的东西。所以这就是我写信给社区的原因:(

预先感谢您的帮助。

0 投票
1 回答
285 浏览

java - Fragments in Knopflerfish

I really need help here, i have a bundle that basically load the right locale property file in order to load the right language.

Now, these files, FlashcardsMessages_es.properties,FlashcardsMessages_de.properties are in a separated package as a fragment but for some reason it seems that my bundle is not finding the fragment.

This is the error i got.

This is my bundle's manifest

And this is my fragment's manifest.

If someone could give me some idea what could be wrong t would be awesome.

EDIT: I found the problem, so eclipse or java wont put any resource like properties files or images files inside the jar when the the compiler runs, so my solution was to put the properties files inside the "classes" folder and then after compiling eclipse did put the files inside the jar files correctly. I found this in some other website but some of the suggestions here inspired me into looking in to that direction so thanks a lot.

0 投票
1 回答
732 浏览

java - 我们如何将键盘输入提供给 OSGI 包。我想从用户那里获取矩阵元素

我正在使用 OSGI 框架创建两个包。一个用于查找给定矩阵的行列式,另一个用于从 user 获取矩阵。我正在使用 knopflerfish 框架运行这些捆绑包。当我为矩阵取恒定值并运行这些捆绑包时,它们工作正常。但是,当我编写代码以获取用户输入并在 knopflerfish 的 jar 文件中运行它时,它会在 nextInt() 方法中给出错误。请给我这个问题的解决方案。

这是我用来创建包的 Activator 类的代码。我正在创建这个包的 jar 文件并在 knopflerfish 中运行它。它在 nextInt() 方法中显示错误。我无法获得用户输入。如果我将这个程序作为 java 应用程序独立运行,它可以工作,但在 knopflerfish 框架中它不能工作

例外是

0 投票
1 回答
289 浏览

java - 对 OSGi kf 框架的引导类路径扩展支持

kf 框架是否支持引导类路径扩展?如果支持,我该如何配置以将属性设置为始终为真?

我尝试将 org.osgi.supports.bootclasspath.extension 属性设置为 true 但无济于事。

从下面提取的代码(取自 FWProps.java,initProperties 方法)中,似乎该属性将始终设置为 false,除非它不是第一个与代码中的注释相矛盾的框架。