Hi Svetlin,

we can add jsonp in
https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/util/classloader/URLClassLoaderFirst.java#L569
list to ensure the behavior you desire work (but note we respect the spec
in our current behavior). Can be workedaround with a custom classloader but
fixing this is probably saner.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-06-05 11:37 GMT+02:00 Svetlin Zarev <svetlin.angelov.za...@gmail.com>:

> Hi,
>
> If the application brings its own JsonProvider, then
> JsonProvider.provider() should return it instead of the default one.
> Instead TomEE always returns the default one (Johnzon). The issue is that
> JsonProvider.doLoadProvider() returns the first encountered one and does
> not check if it's the  default, which results in TomEE never loading the
> application's JsonProvider
>
>
> Do you think if this can be worked around ? I can provide PR for the
> geronimo-json spec api, but I'm not sure if the project is active.
>
> [1]
> http://docs.oracle.com/javaee/7/api/javax/json/spi/
> JsonProvider.html#provider--
>
> Kind regards,
> Svetlin
>

Reply via email to