OSGi (felix) ignores OSGI-INF

前提是你 提交于 2019-12-13 19:01:19

问题


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

Even when I write wrong classes and interfaces in temp.xml I get no errors. Where is mistake or maybe I must enable something?


回答1:


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?



来源:https://stackoverflow.com/questions/22963720/osgi-felix-ignores-osgi-inf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!