OSGi(felix)忽略了OSGI-INF [英] OSGi (felix) ignores OSGI-INF
问题描述
我自己启动felix框架。一切都好。但是当我开始使用声明性服务时,我发现felix忽略了OSGI-INF / temp.xml。在清单中我通过maven添加
I start felix framework myself. Everything is ok. But when I started with declarative services I see that felix ignores OSGI-INF/temp.xml. In manifest I added via maven
Service-Component: OSGI-INF/temp.xml
即使我在temp.xml中编写错误的类和接口,我也没有错误。哪里出错或者我必须启用一些东西?
Even when I write wrong classes and interfaces in temp.xml I get no errors. Where is mistake or maybe I must enable something?
推荐答案
OSGi框架不处理Service-Component标头。这是由Apache Felix SCR之类的Declarative Services实现处理的。你安装并开始了吗?
An OSGi framework does not process Service-Component header. That is processed by a Declarative Services implementation like Apache Felix SCR. Do you have that installed and started?
这篇关于OSGi(felix)忽略了OSGI-INF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!