On 20/02/12 22:03, Sergey Beryozkin wrote:
Hi,
What update you are expecting ?

Would to confirm just in case: the exception you are seeing has nothing to do with the Jackson provider not loaded - and I've removed that noise in 2.5.3-SNAPSHOT. If you need Jackson reading the JSON payloads on the client side then please register it with WebClient.create(...) or JAXRSClientFactory.create(...)

HTH
Sergey


Cheers, Sergey
On 20/02/12 21:59, forumssj wrote:
Hello Sergey,

Any update on this?

kind regards,
sj

On Tue, Feb 14, 2012 at 11:13 PM, forums sj<[email protected]> wrote:

Yes, I still get the same message about the default JSON provider,
jettison

org.apache.cxf.jaxrs.provider.ProviderFactory createProvider
INFO: Problem with setting the default provider

org.apache.cxf.jaxrs.provider.JSONProviderorg/codehaus/jettison/mapped/TypeConverter


Do i need to upgrade CXF to get your fix?

kind regards,
sj


On Tue, Feb 14, 2012 at 10:45 PM, Sergey Beryozkin-5 [via CXF]<
[email protected]> wrote:

Hi
On 14/02/12 21:42, forumssj wrote:

Hi Sergey,

Tried

JAXRSClientFactory.create("
http://localhost:8080/XXXService/rest/XXXService
",
XXXManager.class, Collections.singletonList(new
JacksonJsonProvider()));

still the same error...


Do you mean seeing the same info message to do with the default JSON
provider ?

I've actually minimized the noise few days ago, it won't prevent the
jackson provider from operating ...

Sergey

kind regards,
SJ

On Mon, Feb 13, 2012 at 11:42 PM, Sergey Beryozkin-5 [via CXF]<
[hidden email]<http://user/SendEmail.jtp?type=node&node=5484038&i=0>>
wrote:

Hi,
On 13/02/12 22:20, forumssj wrote:

Hi,

I am new to CXF. With some effort I could get REST webservices
working
which consume and produce JSON. Now I am trying to write a client to
test
the same. I am using Jackson for JSON and CXF2.5.1. When I try to
access
the
webservice from the client, tomcat throws this error -
org.apache.cxf.jaxrs.provider.ProviderFactory createProvider
INFO: Problem with setting the default provider


org.apache.cxf.jaxrs.provider.JSONProviderorg/codehaus/jettison/mapped/TypeConverter




I understand from the error that I need to configure Jackson as
the
JSON
provider. I am using a simple servlet for the client, no spring and
do
not
understand how I can configure Jackson as the JSON provider in code.
Here's
what I try to do :
XXXManager mgr =
JAXRSClientFactory.create("
http://localhost:8080/XXXService/rest/XXXService";,
XXXManager.class);
try {
//create JSON object to pass to webservice
SearchRequest req = .....
SearchResponse resp = mgr.SearchXXX(req);
}
catch(ServerWebApplicationException ex)
{
Response r = ex.getResponse();
String message = ex.getMessage();
}

Here both SearchRequest and SearchResponse are annotated with
@XmlRootElement

Any help will be appreciated.


JAXRSClientFactory.create("
http://localhost:8080/XXXService/rest/XXXService";,
XXXManager.class, Collections.singletonList(new MyProvider()));

should help.
Cheers, Sergey

kind regards,
sj


--
View this message in context:

http://cxf.547215.n5.nabble.com/Configuring-Jackson-as-JSON-provider-in-JAX-RS-client-tp5480793p5480793.html

Sent from the cxf-user mailing list archive at Nabble.com.


--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com


------------------------------
If you reply to this email, your message will be added to the
discussion
below:


http://cxf.547215.n5.nabble.com/Configuring-Jackson-as-JSON-provider-in-JAX-RS-client-tp5480793p5480847.html

To unsubscribe from Configuring Jackson as JSON provider in JAX-RS
client, click here<

.
NAML<
http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>





--
View this message in context:
http://cxf.547215.n5.nabble.com/Configuring-Jackson-as-JSON-provider-in-JAX-RS-client-tp5480793p5484027.html


Sent from the cxf-user mailing list archive at Nabble.com.


--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com


------------------------------
If you reply to this email, your message will be added to the
discussion below:

http://cxf.547215.n5.nabble.com/Configuring-Jackson-as-JSON-provider-in-JAX-RS-client-tp5480793p5484038.html

To unsubscribe from Configuring Jackson as JSON provider in JAX-RS
client, click
here<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5480793&code=Zm9ydW1zc2pAZ21haWwuY29tfDU0ODA3OTN8MTMzNTk1NzEyMg==>

.
NAML<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>






--
View this message in context:
http://cxf.547215.n5.nabble.com/Configuring-Jackson-as-JSON-provider-in-JAX-RS-client-tp5480793p5500425.html

Sent from the cxf-user mailing list archive at Nabble.com.




--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to