TomEE doesn't use wildcard version by default
but  org.apache.johnzon.jaxrs.JohnzonProvider
and org.apache.johnzon.jaxrs.JsrProvider which are not using */* but
application/json making it used if there is no conflict for this media type.

Issue comes from JAXRS 2 sorting, it can be controlled by configuration
setting a resource comparator cxf.jaxrs.resourceComparator=qualified name in
openejb-jar.xml

org.apache.openejb.server.cxf.rs.CxfRsHttpListener$
<https://github.com/apache/tomee/blob/2f48d94ab18aa7dd2771c0bbfd5acd1dfa1c5e40/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java>
DefaultProviderComparator is one option but then CXF resort anyway the
providers to respect JAXRS 2 spec.

Easiest is to either disable conflicting providers (in
conf/system.properties set {name}.activated=false)



Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2016-02-24 8:31 GMT+01:00 ravi <[email protected]>:

> I just noticed that Wildcard providers are added in lastest version of
> Johnzon.
> How do I make org.apache.johnzon.jaxrs.WildcardJohnzonProvider and
> org.apache.johnzon.jaxrs.WildcardJsrProvider the default providers in
> tomee?
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Tomee-7-0-0-M2-JaxRs-Client-No-message-body-reader-has-been-found-for-class-ContentType-application-n-tp4677664p4677667.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to