Reputation: 157
I get this error when I send out a request with post:
NoClassDefFoundError: org/glassfish/jersey/process/internal/RequestExecutorFactory
my code looks like that:
@POST
@Path("/processPayment")
public Response processPay(PaymentRequestInterface request) throws ServletException {
Object obj = new Object();
//create an object at the used library and do something with it
return Response.status(status).entity(obj).build();
}
and if I change my POST to a GET method I get this error:
NoClassDefFoundError: org/glassfish/jersey/client/ClientAsyncExecutorFactory
maybe this information helps someone....
Upvotes: 0
Views: 4429
Reputation: 10833
You need to add the following dependency to your Maven project
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
<version>2.23</version>
</dependency>
Upvotes: 1