Use JAXB-RI with Jersey
I am using the xjc ant task provided by the JAXB-RI to generate our jaxb classes and provide all the jaxb jars in with my web application开发者_JAVA百科's WEB-INF/lib folder. Jersey is still using the runtime provided jaxb implementation (found in rt.jar) Is there some way to use @Provider to force it to use the jaxb-ri jars?
As far as I understood the problem correctly, this small tutorial should help.
精彩评论