You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Mihael Schmidt <ms...@sgbs.de> on 2012/09/18 15:59:32 UTC

jax-rs and dOSGi : NPE problem

hi,

i am trying to get jax-rs with cxf dosgi up and running. i am using
apache felix and dropped the cxf single bundle into the load folder. the
bundle loaded successfully. but my resource is not successfully
processed by cxf. i tried the greeter-rest demo. didn't work either.
http://pastebin.com/EcebQBcN

thanx in advance

mihael

-- 
Mihael Schmidt
Software und System-Entwicklung
Schulz Gebäudeservice GmbH & Co. KG
Dr.-Max-Ilgner-Straße 17
32339 Espelkamp

Telefon: 05772-9100-00
Telefax: 05772-9100-11
Internet: www.sgbs.de

Persönlich haftende Gesellschafterin:
Gebäudereinigung Joachim Schulz
Verwaltungsgesellschaft mbH

Geschäftsführer: Joachim Schulz, Dirk Schulz, Norbert Kosica

Handelsregister Bad Oeynhausen:
HRA 5902, HRB 8591


Re: jax-rs and dOSGi : NPE problem

Posted by Mihael Schmidt <ms...@sgbs.de>.
After removing the felix-cache and using the multi-bundle distro it worked.

Thanx.

Mihael

Am 18.09.2012 16:32, schrieb Sergey Beryozkin:
> Hi
> On 18/09/12 14:59, Mihael Schmidt wrote:
>> hi,
>>
>> i am trying to get jax-rs with cxf dosgi up and running. i am using
>> apache felix and dropped the cxf single bundle into the load folder. the
>> bundle loaded successfully. but my resource is not successfully
>> processed by cxf. i tried the greeter-rest demo. didn't work either.
>> http://pastebin.com/EcebQBcN
>>
> Is that with a multi-bundle distro ?
> Try following these guide, the demo always work for me:
> (except for a proxy client which works with all the distros on the
> trunk, and only with a single-bundle one - in 1.3.1 and earlier)
>
>
> http://cxf.apache.org/dosgi-multi-bundle-setup.html
>
> Cheers. Sergey
>
>> thanx in advance
>>
>> mihael
>>
>
>


-- 
Mihael Schmidt
Software und System-Entwicklung
Schulz Gebäudeservice GmbH & Co. KG
Dr.-Max-Ilgner-Straße 17
32339 Espelkamp

Telefon: 05772-9100-00
Telefax: 05772-9100-11
Internet: www.sgbs.de

Persönlich haftende Gesellschafterin:
Gebäudereinigung Joachim Schulz
Verwaltungsgesellschaft mbH

Geschäftsführer: Joachim Schulz, Dirk Schulz, Norbert Kosica

Handelsregister Bad Oeynhausen:
HRA 5902, HRB 8591


Re: jax-rs and dOSGi : NPE problem

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
On 18/09/12 14:59, Mihael Schmidt wrote:
> hi,
>
> i am trying to get jax-rs with cxf dosgi up and running. i am using
> apache felix and dropped the cxf single bundle into the load folder. the
> bundle loaded successfully. but my resource is not successfully
> processed by cxf. i tried the greeter-rest demo. didn't work either.
> http://pastebin.com/EcebQBcN
>
Is that with a multi-bundle distro ?
Try following these guide, the demo always work for me:
(except for a proxy client which works with all the distros on the 
trunk, and only with a single-bundle one - in 1.3.1 and earlier)


http://cxf.apache.org/dosgi-multi-bundle-setup.html

Cheers. Sergey

> thanx in advance
>
> mihael
>