Glassfish JAX-RS JSON Mapping Simple Example Internal Server Error 500 No Logs Produced
问题 I have created a simple REST service with two resources. The first resource works great and just returns MediaType.TEXT_PLAIN. For the second resource I wanted to try mapping POJO to Java and followed this example: https://github.com/jersey/jersey/tree/2.3.1/examples/json-moxy/src/main/java/org/glassfish/jersey/examples/jsonmoxy with my testbean defined as: @XmlRootElement public class Company { public String name; public String symbol; public String country; public Company(String name,