10,379 questions
1 vote
1 answer
99 views
Keycloak Admin Client with Resteasy
I am using the latest Version of the Keycloak Admin Client <dependency> <!-- provides convenience classes for accessing the keycloak rest api --> <groupId>org.keycloak</...
0 votes
0 answers
42 views
Providing JerseyTest with Spring Application Context when using configureDeployment method
I am trying to create a JerseyTest setup where a Spring applicationContext is provided to the JerseyTest. I am using Jersey 2.47, Spring 5.3.39 and jersey-spring5. I am overriding the ...
0 votes
0 answers
66 views
How do I configure jersey and tomcat to automatically convert POJOs to JSON?
As you can see in TestRest.java I am trying to return a POJO in JSON. I would like to configure tomcat and jersey to automatically convert POJOs to JSON in the response. The way it is configured ...
0 votes
1 answer
84 views
Performance degradation after migration from a legacy war to Spring Boot, how to investigate?
I have a legacy java application using jersey 2.x and deployed to tomcat 8. Recently I migrated it to the latest version of spring boot. The migration went without any issue and all the function tests ...
0 votes
0 answers
50 views
Setting up the validator gives errors Jersey
I am trying to set up the bean validation in my jersey server. I would like to assure that everytime I get an email in this bean it is not null. But with this current setup, everytime jersey tries to ...
0 votes
1 answer
122 views
How can I replace the generated OpenAPI spec in Swagger (JAX-RS + OpenApiResource) with a custom OpenAPI object?
I'm using Swagger with Jersey (JAX-RS) to serve API documentation. I configure Swagger like this: ResourceConfig swaggerResourceConfig = new ResourceConfig() .packages("io.swagger.v3.jaxrs2....
0 votes
1 answer
110 views
Inclusion of @FormDataParam annotation(s) results in 400 Bad Request (Jersey 3.1.10, Java 17, Tomcat 10) for multipart/form-data requests
I have an existing REST API (has been around for years now and I'm the original author) which has multiple end-points. I just added a new end-point for uploading files. The end-point method resource ...
0 votes
0 answers
30 views
Spring Jersey API: 400 Bad Request when Importing Document to Outline API
I am working on a Spring Jersey application where I need to import a document into Outline using their API. However, when I send the POST request to /documents.import, I receive a 400 Bad Request ...
0 votes
0 answers
39 views
apache ranger 2.5.0 docker image with jdk11 fails to start. Web server errors out with SEVERE: Servlet.init()
I am trying to run apache ranger2.5.0 docker image built with jdk11 on kubernetes. Ranger process starts but the REST endpoint initialization fails with below logs in cataline.out Pod logs ...
0 votes
0 answers
31 views
Jersey Root Resources and Sub-Resources Performance for Large-Scale Applications
I'm working on a backend for a frontend application for a portal that has grown over the last years and already counts over 2500 unique endpoints/rest methods. We're using Jersey for our RESTful ...
0 votes
1 answer
62 views
Jersey client connection reuse with chunked gzip response
I am trying to use a Jersey (3.x) client with ApacheConnector but I observed that in case a chunked gzip response is received. the connection gets closed as soon as the response is read. The ...
0 votes
0 answers
22 views
Jersey: Adding ResourceMethodDispatcher and its Provider
I have a code which works fine for jersey < 2.26 but fails on jersey >= 2.26 (version at which they removed hard binding with hk2 DI) Code - 2.23 Create custom ResourceMethodDispatcher and its ...
0 votes
0 answers
25 views
API path is 404 Not Found for JAXRS and Jersey project
I am starting to use JAXRS to build a small application. I started with just a simple API that returns a hello world string on an API GET /api/hello. Here is my progress but I can't seem to let it ...
0 votes
0 answers
45 views
How to read Form Data in JAX RS response?
Problem: I have to make JAX RS client call for GET HTTP method. But, the response is a Form data. I need help in knowing how to read the response which is of type FormData. Ex: ClientConfig config = ...
0 votes
0 answers
35 views
Jersey Custom Provider not registered
I have a simple application where I want to provide my custom ResourceMethodDispatcher, in FINEST level log, I can see this 27-Jan-2025 12:36:57.304 FINEST [main] org.glassfish.jersey.server.model....