I'm trying to deploy REST web service on WebLogic 12c. I followed the official guide to configure the Jersey runtime and deploy the service.
Everything seems to work, until I return any object from the REST method. Here is the snippet
@GET
@Produces(MediaType.APPLICATION_JSON)
public List<Foo> getFoos() {
return repo.getFoos();
}
The method returns "Internal server error" string as a payload. Oddly enough, I don't see any runtime exceptions in the server log. Same applies to any object type. However, I can return String with according media type with no problem.
Seems like there is some problem with the JSON marshalling. Do I need further configuration to enable the JSON marshaller?