I'm trying to use EclipseLink MOXy as my JAXB Provider, but I'm still having some problems.
I've already put a jaxb.properties
file in the same package as the Error class. Nonetheless, I still get following error, when calling my webservice:
Error 500 org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object of type: br.services.model.Error of media type: application/xml;charset="UTF-8"
If I run the following code in my Error
class
public static void main(String[] args) throws JAXBException
{
System.out.println(JAXBContext.newInstance(Error.class).getClass());
}
I will get this: class org.eclipse.persistence.jaxb.JAXBContext
So could anyone please help me?