I'm experimenting with some minor variations to the
Maven jersey-quickstart-webapp.
I have a trivial Person class
and a resource that returns a json representation of a List<Person>
So far, this works as expected.
However, I'm wanting to return a custom http header in response to the GET and although I've not added that custom header yet, I read that I can do so if I use a Response object.
I was expecting this code, to return the same json
However attempting to GET this resource results in a 500 Internal Server Error. The
Tomcat error log says:
Could anyone point out my error here?
I was expecting that whatever classes are needed to translate a List<Person> into json, and are evidently available in the first implementation of MyResource, would also work in the second.