Got Jetty 8.1 with Jersey 2.4 as a REST servlet:
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>jersey.config.server.provider.packages</param-name>
<param-value>org.foo.rest;org.bar.rest</param-value>
</init-param>
GET answers work very well, but when I try to execute POST, this strange error is visible with Jetty:
WARN oejserver.AbstractHttpConnection - full title: java.lang.RuntimeException: Title> 6144
The client only sees the HTTP 500 response without any details:
INFO: 1 * LoggingFilter - Request received on the main thread topic
1> PUT http://localhost:8080/rest/doPOST
1> Accept: application / json
1> Content-Type: application / json
{"Name": "Kris Kringle", "trkNbr": "585802240942", "rptDt": null, "reqType": "part"}
19 2013 . 12:59:49 org.glassfish.jersey.filter.LoggingFilter log
INFO: 2 * LoggingFilter -
2 < 500
2 < Content-Length: 0
2 < : Jetty (8.1.13.v20130916)
"main" javax.ws.rs.InternalServerErrorException:
HTTP 500
org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:929)
{ }:
TestPOJO responseMsg = target.path("/rest/doPOST")
.request(MediaType.APPLICATION_JSON)
.put(Entity.json(reqPOJO), TestPOJO.class);
Jetty , , , .