I got my CXF JAX-RS service going but the response is cryptic: No message body
writer found for response class : AlertMsg.
Browsing the archive, I found the solution, but it looks "roundabout". I don't
like the need to annotate my response bean with JAXB stuff. An analogy is that
Web Services (SOAP) do not require annotations/registration of writers of the
response beans...why CXF/JAX-RS? Thanks...
@GET
@Path("/getAlertMsg/{aId}")
@ProduceMime("application/json")
public AlertMsg getAlertMsg(@PathParam("aId") String aId)
public class AlertMsg implements java.io.Serializable
{
private String a;
private String[] b;
}