You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Timothy Vogel <tv...@msn.com> on 2015/03/23 13:37:08 UTC

Help with OSGi dynamic services

I need some help understanding what is wrong with how I have configured my dynamic services in karaf.  
Why is the service not imported when my bundle (com.easa.motordb.server.services) starts?karaf@root()> bundle:info 152
com.easa.motordb.server.services (152)--------------------------------------karaf@root()>

my manifest has the line :Service-Component: OSGI-INF/AcrServices-ref.xml
the contents of OSGI-INF/AcrServices-ref.xml are:<?xml version="1.0" encoding="UTF-8"?><scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="com.easa.motordb.server.services.LookupServices-ref">   <implementation class="com.easa.motordb.server.services.Activator"/>   <reference bind="bindAcMotor" cardinality="1..1" interface="com.easa.acmotor.model.IAcMotorEntity" name="IAcMotorEntity" policy="static" unbind="unbindAcMotor"/></scr:component>
The following service registration from another bundle has already happened:karaf@root()> service:list com.easa.acmotor.model.IAcMotorEntity[com.easa.acmotor.model.IAcMotorEntity]--------------------------------------- osgi.service.blueprint.compname = acrEntityImpl service.id = 819Provided by : com.easa.acmotor.server.services (153)