Hi,

I'm trying to use D-OSGI osgi with http service.
I have declared the following properties in my exported service

<property name="service.exported.interfaces" value="*" />
<property name="org.apache.cxf.ws.httpservice.context" value="/AgentRemoteDiscovery" />

and on the other side, i have an ipojo component that bind this service

@Bind(optional = true, aggregate = true)
public void bindAgentDiscoveryService(AgentDiscoveryService service, ServiceReference reference)

The problem is that when in this method my "service" is null, I get a NPE in the bind method when i want to use the service. The web service at /AgentRemoteDiscovery is available when i try to get to it in a browser adding ?wsdl.

The bind method works fine when i juste remove the httpservice.context property and don't use osgi http service

Do you have any ideas what is the problem ?

Thanks,

Julien



Reply via email to