To get your maven projects started with RESTeasy, you’ll have to make sure that you add the following entries to your pom.xml:
to your section and
To your section.
That’s the minimum requirement to use resteasy and it wrks fine,a s long as you return strings or you create your own return XML with something like simpleXML. That approach is OK if your service consumer is some Non – Java Application like Flex for instance.
You’ll have to add a few dependencies to your maven pom.xml in order to take advantage of this:
if you want to combine JAXB with Atom. It is also possible to combine JSON and JAXB. See the JBoss docs for details.
If you avoid adding the depencies, you’ll get the following irritating error:
Unable to find a MessageBodyReader of content-type application/xml and type class …
which means that RESTeasy was unable to find the provider for JAXB. This dependency must be available on the client and on the server.