You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by John Dubchak <jo...@johndubchak.com> on 2013/10/24 17:14:03 UTC

Error on starting cxf-jaxrs-blueprint in SMX 4.5.3

Hi,

I built the above example and deployed it successfully.  However, when I 
start it, I get the following error:

org.osgi.framework.BundleException: Unresolved constraint in bundle 
cxf-jaxrs-blueprint [185]: Unable to resolve 185.0: missing requirement 
[185.0] package; (&(package=org.apache.commons.httpclient)(version>=3.1.0))

I searched the features:list but couldn't find the Commons httpclient.  
What am I missing?  Also, a related question, what bundle provides the 
javax.ws.rs and javax.ws.rs.core packages?

Thanks,
JohnD

Re: Error on starting cxf-jaxrs-blueprint in SMX 4.5.3

Posted by scottdawson <sc...@gmail.com>.
John,
Yes, I agree, the examples should just work.

Looks like you need javax.ws.rs-api-2.0-m10.jar. I see it in my Maven
repository. There's a list of CXF dependencies here:
http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/lib/WHICH_JARS

Regards,
Scott



--
View this message in context: http://servicemix.396122.n5.nabble.com/Error-on-starting-cxf-jaxrs-blueprint-in-SMX-4-5-3-tp5718145p5718148.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Error on starting cxf-jaxrs-blueprint in SMX 4.5.3

Posted by John Dubchak <jo...@johndubchak.com>.
Thanks Freeman,

https://issues.apache.org/jira/browse/SMX4-1598

On 10/24/13, 4:56 PM, Freeman Fang wrote:
> Hi,
>
> Could you please log a jira ticket? We will look into it.
>
> Thanks
> -------------
> Freeman(Yue) Fang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Web: http://fusesource.com | http://www.redhat.com/
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> http://blog.sina.com.cn/u/1473905042
> weibo: @Freeman小屋
>
>
>
> On 2013-10-25, at 上午1:35, John Dubchak wrote:
>
>> Hi Scott,
>>
>> Thanks for the response - I understand the notion of wrapping and installing like that.  I just assumed that the examples would deploy and run out-of-the-box and not leave parts out as an "exercise to the reader".
>>
>> I will give that a shot.  Any idea how I could resolve the same issue with javax.ws.rs? I assume it's from CXF, but not sure which bundle...
>>
>> John
>>
>> On 10/24/13 10:21 AM, scottdawson wrote:
>>> John,
>>> Here's something to try... you can install a 3rd-party library into
>>> ServiceMix by issuing a command like this from the ServiceMix console:
>>>
>>> osgi:install -s wrap:mvn:commons-httpclient/commons-httpclient/3.1
>>>
>>> Good luck,
>>> Scott
>>>
>>>
>>>
>>> --
>>> View this message in context: http://servicemix.396122.n5.nabble.com/Error-on-starting-cxf-jaxrs-blueprint-in-SMX-4-5-3-tp5718145p5718146.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>


Re: Error on starting cxf-jaxrs-blueprint in SMX 4.5.3

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Could you please log a jira ticket? We will look into it.

Thanks
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋



On 2013-10-25, at 上午1:35, John Dubchak wrote:

> Hi Scott,
> 
> Thanks for the response - I understand the notion of wrapping and installing like that.  I just assumed that the examples would deploy and run out-of-the-box and not leave parts out as an "exercise to the reader".
> 
> I will give that a shot.  Any idea how I could resolve the same issue with javax.ws.rs? I assume it's from CXF, but not sure which bundle...
> 
> John
> 
> On 10/24/13 10:21 AM, scottdawson wrote:
>> John,
>> Here's something to try... you can install a 3rd-party library into
>> ServiceMix by issuing a command like this from the ServiceMix console:
>> 
>> osgi:install -s wrap:mvn:commons-httpclient/commons-httpclient/3.1
>> 
>> Good luck,
>> Scott
>> 
>> 
>> 
>> --
>> View this message in context: http://servicemix.396122.n5.nabble.com/Error-on-starting-cxf-jaxrs-blueprint-in-SMX-4-5-3-tp5718145p5718146.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 


Re: Error on starting cxf-jaxrs-blueprint in SMX 4.5.3

Posted by John Dubchak <jo...@johndubchak.com>.
Hi Scott,

Thanks for the response - I understand the notion of wrapping and 
installing like that.  I just assumed that the examples would deploy and 
run out-of-the-box and not leave parts out as an "exercise to the reader".

I will give that a shot.  Any idea how I could resolve the same issue 
with javax.ws.rs? I assume it's from CXF, but not sure which bundle...

John

On 10/24/13 10:21 AM, scottdawson wrote:
> John,
> Here's something to try... you can install a 3rd-party library into
> ServiceMix by issuing a command like this from the ServiceMix console:
>
> osgi:install -s wrap:mvn:commons-httpclient/commons-httpclient/3.1
>
> Good luck,
> Scott
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Error-on-starting-cxf-jaxrs-blueprint-in-SMX-4-5-3-tp5718145p5718146.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Error on starting cxf-jaxrs-blueprint in SMX 4.5.3

Posted by scottdawson <sc...@gmail.com>.
John,
Here's something to try... you can install a 3rd-party library into
ServiceMix by issuing a command like this from the ServiceMix console:

osgi:install -s wrap:mvn:commons-httpclient/commons-httpclient/3.1

Good luck,
Scott



--
View this message in context: http://servicemix.396122.n5.nabble.com/Error-on-starting-cxf-jaxrs-blueprint-in-SMX-4-5-3-tp5718145p5718146.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.