Looks like you're missing the service.exported.configs property.
<osgi:service ref="userService" interface="foo.UserService">
<osgi:service-properties>
<entry key="service.exported.configs" value="org.apache.cxf.ws" />
<entry key="service.exported.interfaces" value="*" />
<entry key="org.apache.cxf.ws.address" value="
http://localhost:9090/user" />
<entry key="org.apache.cxf.ws.databinding" value="jaxb" />
<entry key="org.apache.cxf.ws.frontend" value="jaxws" />
</osgi:service-properties>
</osgi:service>
of course, in this example, i'm using jaxb data binding and jaxws front-end,
but if you want to default (reflection databinding and aegis frontend, just
leave off the last two properties). But the service.exported.configs is
absolutely necessary in order to get cxf to export the service.
On Tue, Mar 9, 2010 at 10:53 AM, Jacek Bilski <[email protected]>wrote:
> Hi Matthew,
>
>
> Matthew Inger wrote:
>
>> I've gotten this working, though It took a bit of work, though I think
>> i've
>> done it the proper way. Unfortunately, though you have to rebuild cxf and
>> dosgi yourself. I only hope the folks at the cxf project accept the patch
>> I
>> submitted to them.
>>
>> https://issues.apache.org/jira/browse/DOSGI-55
>>
>>
>> You have to start by doing this:
>>
>
> OK, I installed it using your instructions. No problems here, I see that
> plan is deployed, no errors in log file, thanks for that. But still I cannot
> install neither my application not spring dm example from CXF dosgi.
>
> Is there any special configuration required? I'm trying to export my
> service using:
>
> <osgi:service ref="userService" interface="foo.UserService">
> <osgi:service-properties>
> <entry key="osgi.remote.interfaces" value="*" />
> <entry key="osgi.remote.configuration.pojo.httpservice.context"
> value="/userService" />
> </osgi:service-properties>
> </osgi:service>
>
> As I was previously tried to export my service, then I could find in log
> file some mentions about service being exposed. Now nothing like that
> happens.
>
> What I'm doing wrong?
>
> Regards
>
> Jacek Bilski
>