Вопрос

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?

Это было полезно?

Решение

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?

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top