Dónal
Dónal

Reputation: 187499

specify alternate JAXB provider

In my Grails app, I want to use EclipseLink as the JAXB provider. I tried adding a file grails-app\conf\jaxb.properties with the contents

javax.xml.bind.context.factory=org.eclipse.persistence.jaxb.JAXBContextFactory

But it seems the default JAXB provider is still being used. I've confirmed that the relevant JARs for EclipseLink are on my runtime classpath.

Upvotes: 1

Views: 1365

Answers (1)

bdoughan
bdoughan

Reputation: 148977

The jaxb.properties file needs to be added in the same package as your domain classes:

Upvotes: 1

Related Questions