Closed marcanpilami closed 8 years ago
@BryanHunt do you understand what's going on here?
I'm pretty sure the problem is not the publisher bundle since there are "caused by" exceptions lower in the stack trace. It seems the problem is Moxy itself. I would talk with the Moxy folks and see what they say.
Closed as we can't do anything about it
Hello,
I am using version 5.3.0.201512270850 (latest at the time of writing) of the connector (bundles publisher and provider.moxy), as well as Jersey 2.22.1 and Moxy 2.6.2 (not the 2.6.0 bundled with Jersey as there is an import issue with it).
Most JAX-RS services work fine. But those which return a List fail with exception
Sample REST service is:
It seems there is some weird classloader magic here: the package containing CollectionValue IS exported by the moxy bundle. But it is the publisher bundle which tries to import that class, and it has no import on it. It seems Moxy tries to load its classes from the CL that loaded its provider class (which would be the publisher).
Is there a mean to impose bundle CL? Do you thing it is a Moxy bug?
Thanks a lot!