OSGi equinox 捆绑包始终处于“已解决”状态

发布于 2024-09-06 23:21:36 字数 315 浏览 1 评论 0原文

我创建了一个主包,其中安装了 equinox p2。然后我将其导出以获得可执行文件。我的可执行文件工作正常。

我还创建了另一个与第一个捆绑包交互的捆绑包。在 Eclipse 中,如果我使用这两个包创建产品配置并运行该产品,则一切正常。

之后,我将第二个捆绑包导出为“可部署功能”,然后通过“帮助->安装新软件”在我的应用程序中安装此捆绑包。我可以安装它,但是即使我重新启动应用程序,我的捆绑包也始终处于“已解决”状态。我想将状态设置为“ACTIVE”。

您知道我是否可以配置一些东西来自动启动我的捆绑包,就像我在“产品配置”中所做的那样?或者还有其他解决方案吗?

I've created one main bundle in which one I've installed the equinox p2. Then I export it to obtain an executable. My executable works correctly.

I've also created one other Bundle that interacts with the first one. In eclipse, if I create a product configuration with these 2 bundles and run the product, everything works.

After that, I export my second Bundle as a "deployable feature" and then I install this bundle wihtin my application via the "help->install new software". I'm able to install it, however my Bundle stays always in the state "RESOLVED" even if I restart my application. I'd like to set the state as "ACTIVE".

Do you know if I can configure somehting to autostart my bundle as I did in my "Product configuration"? Or is there an another solution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

天赋异禀 2024-09-13 23:21:36

尝试使用命令行命令“start”手动启动捆绑包。您的捆绑包的 BundleActivator 似乎存在一些问题。您应该获得一些日志(错误/警告)。

Try to start your bundle manually with the commandline command "start ". It seems that there are some problems in BundleActivator of your bundle. You should get some logs (errors/warnings).

海夕 2024-09-13 23:21:36

RESOLVED 状态不是错误状态,它只是意味着没有人激活您的捆绑包。为什么需要它处于活动状态?是否存在由于它不处于活动状态而导致的其他错误?

否则,如果您的应用程序正在运行,则不必担心。

The RESOLVED state is not an error state, it simply means nobody has activated your bundle. Why do you need it to be ACTIVE? Is there some other error caused by the fact that it is not ACTIVE?

Otherwise, if your application is working then just don't worry about it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文