users@glassfish.java.net

How to use MOXy JAXB provider with Glassfish server

From: <glassfish_at_javadesktop.org>
Date: Wed, 11 Aug 2010 09:50:20 PDT

Hi,
I would like to use EclipseLink MOXy JAXB provider in my EJB application deployed on the Glassfish server. I downloaded org.eclipse.persistence.moxy.jar into glassfish's modules folder and placed jaxb.properties file with content: javax.xml.bind.context.factory=org.eclipse.persistence.jaxb. JAXBContextFactory into my entities/xmltypes folder. When I deploy my app into Glassfish there is following error in server.log: >>> javax.xml.ws.WebServiceException: Unable to create JAXBContext ... Property "id" has an XmlID annotation but its type is not String. <<<
Because MOXy should support non-String types annotated with @XmlID I presume MOXy was not used by Glassfish.

Does anybody know how properly configure Glassfish to work with other than default (Metro?) JAXB provider? Thank you and sorry my English.
[Message sent by forum member 'stan_svec']

http://forums.java.net/jive/thread.jspa?messageID=479895