Use Moxy as default JAXB Implementation
Note: I'm the EclipseLink JAXB (MOXy) lead and a member of the JAXB (JSR-222) expert group.
MOXy is already the default JAXB implementation in WebLogic 12.1.1:
In other environments you could also leverage the META-INF/services
mechanism to specify MOXy as the default JAXB provider:
- Create a JAR that contains a file called
javax.xml.bind.JAXBContext
in the directoryMETA-INF/services
- The contents of the
javax.xml.bind.JAXBContext
file must beorg.eclipse.persistence.jaxb.JAXBContextFactory
- Add that jar to your classpath.