TomEE+ supports JAXRS but some configuration can look a bit hidden.
I’ll try in this post to give you some few hints.
JAXRS defines several providers. It can be exception mappers or message body writer for instance.
To configure it in TomEE 1.0.0 (or OpenEJB 4.0.0) you have to set the property openejb.cxf.jax-rs.providers to the qualified name of providers (split by space or comma). To specify a provider for a specific class use <qualified name>.providers property.
In next version a new property will be available to ask TomEE to add automatically all available providers. Simply set openejb.jaxrs.providers.auto to true and your providers will automatically be added.
Note: if you set “default” as provider name it will add jaxb and json cxf providers.
Note: this is refactored to be able to configure webservices (jaxws/jaxrs) through resources.xml, more in another post
Cxf jaxrs services support several configuration throuhg properties. In TomEE (since version > 1.0.0 when it will be released) you’ll be able to set openejb.cxf.rs.properties to the list of properties you want. It is a list of key/value separated by a comma (ex: foo1=bar1,foo2=bar2).
When you get an error you just get a line saying “something happened”. That’s not very useful in particular when you are debugging your service. That’s why now (version > 1.0.0) you can ask the stacktrace setting the property openejb.cxf.rs.properties to the value faultStackTraceEnabled=true.