-
Type:
Bug
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Documentation
-
Labels:None
-
Estimated Complexity:Unknown
http://cxf.apache.org/docs/jax-rs-data-bindings.html#JAX-RSDataBindings-JAXBandMoxy
MoxyJaxbContextResolved example is outdated
this is working :
MoxyJaxbContextResolver java
public class MoxyJaxbContextResolver implements ContextResolver<JAXBContext> { @Override public JAXBContext getContext(Class<?> cls) { try { return JAXBContextFactory.createContext(new Class[] {cls},null); } catch (JAXBException ex) { throw new RuntimeException(ex); } } }